1

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)

Joshua Ulrich
  • 173,410
  • 32
  • 338
  • 418
user189035
  • 5,589
  • 13
  • 52
  • 112

1 Answers1

1

Use https:// for the URL instead.

erasmortg
  • 3,246
  • 1
  • 17
  • 34