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

Jeff Ryan jeff.a.ryan at gmail.com
Thu Oct 14 20:50:50 CEST 2010


Hi Fernando,

The version on R-forge (550) is now patched - thanks to a contribution
from Josh Ulrich.

Thanks,
Jeff

On Thu, Oct 14, 2010 at 9:05 AM, Fernando Antunes <fantunes at fc.ul.pt> wrote:
> 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
>
> _______________________________________________
> R-SIG-Finance at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-finance
> -- Subscriber-posting only. If you want to post, subscribe first.
> -- Also note that this is not the r-help list where general R questions
> should go.
>



-- 
Jeffrey Ryan
jeff.a.ryan at gmail.com



More information about the R-SIG-Finance mailing list