[R-SIG-Finance] Error in getSymbols with adjust=TRUE

Fernando Antunes fantunes at fc.ul.pt
Thu Oct 14 16:05:04 CEST 2010


Dear all,

I am getting the following error when I use getSymbols with adjust=TRUE

#No error with adjust=FLASE
 >setDefaults(getSymbols.yahoo, adjust=FALSE)
 > getSymbols("MSFT", src='yahoo')
[1] "MSFT"

#But with adjust=TRUE
 > setDefaults(getSymbols.yahoo, adjust=TRUE)
 > getSymbols("MSFT", src='yahoo')
Error in sprintf("%.2d", to.d) :
   invalid format '%.2d'; use format %f, %e, %g or %a for numeric objects

Previously, I had no problems with this. My session info is (under 
REvolution):
 > sessionInfo()
R version 2.11.1 (2010-05-31)
i386-pc-mingw32

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] quantmod_0.3-13  TTR_0.20-2       Defaults_1.1-1   xts_0.7-5
[5] zoo_1.6-4        Revobase_4.0.0   RevoScaleR_1.0-0 lattice_0.18-8

loaded via a namespace (and not attached):
[1] grid_2.11.1       pkgXMLBuilder_1.0 revoIpe_1.0       tools_2.11.1
[5] XML_3.1-0


Thanks for any help.
Fernando



More information about the R-SIG-Finance mailing list