r - `quantmod`'s `getSymbols.FRED` not working as expected -
this question has answer here:
- quantmod error 'cannot open url' 4 answers
the following lines quantmod
's manual (p54):
library(quantmod) getsymbols('cpiaucns',src='fred')
returns:
error in download.file(paste(fred.url, "/", symbols[[i]], "/", "downloaddata/", : cannot open url 'http://research.stlouisfed.org/fred2/series/cpiaucns/downloaddata/cpiaucns.csv'
how fix this?
(using latest version of both r
, quantmod
)
use https://
url instead.
Comments
Post a Comment