joshuaulrich / quantmod

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

Issue with getDividends for some companies #294

Closed oldandlostnow closed 4 years ago

oldandlostnow commented 4 years ago

Please forgive me if I don't do this right, as I am new to GitHub.

I am using getDividends to download dividend data for various electric utilities. As of a couple of days ago, the process began failing for some of the companies. For instance, dividend for AEP (American Electric Power) download with no issues. Data for ALE (ALLETE, Inc.) do not. For ALE, the following messages appear:

Error in vapply(parse(text = fr[, 2]), eval, numeric(1)) : values must be length 1, but FUN(X[[1]]) result is length 3 Calls: getDividends -> getSplits -> vapply Execution halted

oldandlostnow commented 4 years ago

Turns out my problem was the same as Issue #292. I was able to use the code change published there to fix my problem.

joshuaulrich commented 4 years ago

@oldandlostnow I was just going to suggest that it was the same root cause. I'm glad you figured it out quicker yourself!