我使用R版本3.6.3(2020-02-29)和Quantmod软件包0.4-15
最近更新之后,当我尝试使用quantmod获取数据时:
getSymbols("^GSPC", src="yahoo", from = '2010-01-01', auto.assign = FALSE)
我看到下一条警告消息:
Warning message:
'indexClass<-' is deprecated.
Use 'tclass<-' instead.
我真的不明白我必须改变什么...
由于xts 0.12-0的变化,这是Quantmod 0.4-15中的错误。因此,您没有做错任何事情,并且您(作为用户)无法避免。
该错误已在quantmod 0.4-16中修复,该模型现在在CRAN上。也就是说,在我撰写本文时,尚未构建Windows二进制文件,因此您必须从源代码安装或等待几天。