The following lines are from 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 to fix this?
(using latest version of both R
and quantmod
)
Use https://
for the URL instead.