I think it is your net-connection problem. It is working fine in my system :
from.dat <- as.Date("01/01/08", format="%m/%d/%y")
to.dat <- as.Date("02/19/09", format="%m/%d/%y")
getSymbols("GE", src="yahoo", from = from.dat, to = to.dat)
[1] "GE"
Sys.info()
sysname release
version
"Windows" "Vista" "build 6002,
Service Pack 2"
nodename machine
login
"ARUN" "x86"
"Arrun's"
user
"Arrun's"
ehxpieterse wrote:
Hi there, I have recently installed R 2.9.1 and quantmod 0.3.6 I am trying to get my head around using it, but I keep on getting stopped at the first hurdle. As an example, I am trying to test the following code:
from.dat <- as.Date("01/01/08", format="%m/%d/%y")
to.dat <- as.Date("02/19/09", format="%m/%d/%y")
getSymbols("GE", src="yahoo", from = from.dat, to = to.dat)
But I get the following error: Error in download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, : cannot open URL 'http://chart.yahoo.com/table.csv?s=GE&a=0&b=01&c=2008&d=1&e=19&f=2009&g=d&q=q&y=0&z=GE&x=.csv' In addition: Warning message: In download.file(paste(yahoo.URL, "s=", Symbols.name, "&a=", from.m, : unable to connect to 'chart.yahoo.com' on port 80. I am not sure where to start to fix this this problem. Has anyone come accross something like this before? Thanks, Eduard
View this message in context: http://www.nabble.com/Quantmod-tp24739588p24743374.html Sent from the Rmetrics mailing list archive at Nabble.com.