joshuaulrich / quantmod

Quantitative Financial Modelling Framework
http://www.quantmod.com/
GNU General Public License v3.0
818 stars 224 forks source link

error in getSplits #292

Closed helgasoft closed 4 years ago

helgasoft commented 4 years ago

Description

Anyone getting this today - error in getSplits? (on R v.3.6.1 with all libraries updated/built) getSymbols may call getSplits and is also affected thru the adjust parameter.

Minimal, reproducible example

getSplits('IBM')
#Error in vapply(parse(text = fr[, 2]), eval, numeric(1)) : 
#  values must be length 1,
# but FUN(X[[1]]) result is length 2
getSymbols('IBM', adjust=TRUE)   # same error
getSymbols('IBM', adjust=FALSE)  # no problem

Session Info

R version 3.6.1 (2019-07-05)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17134)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252   
[3] LC_MONETARY=English_United States.1252 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.4-15 TTR_0.23-6      xts_0.12-0      zoo_1.8-7       bizdays_1.0.6  

loaded via a namespace (and not attached):
[1] compiler_3.6.1  tools_3.6.1     curl_4.3        grid_3.6.1      jsonlite_1.6    lattice_0.20-38
joshuaulrich commented 4 years ago

I can replicate. The delimiter changed from "/" to ":".

I can patch shortly.