joshuaulrich / quantmod

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

getSplits error #295

Closed hoferdp closed 4 years ago

hoferdp commented 4 years ago

getSplits is generating errors parsing yahoo split data


> getSplits('INTC')
Error in vapply(parse(text = fr[, 2]), eval, numeric(1)) : 
  values must be length 1,
 but FUN(X[[1]]) result is length 2

R version 3.5.3 (2019-03-11)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)

Matrix products: default

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

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

other attached packages:
[1] quantmod_0.4-14 TTR_0.23-4      xts_0.11-2      zoo_1.8-5      

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

This is a duplicate of #292, which has been fixed and merged to master. Please check that it solves the issue for you.