Hi R users,
I have a problem in downloading Yahoo Finance data from R. I have tried
an example given in R, to download. The error is given below:
>library(fCalendar)
> yahooImport("s=IBM&a=11&b=1&c=1999&d=0&q=31&f=2000&z=IBM&x=.csv ",
file = "D:\\ Downlaod",source = "http://ichart.yahoo.com/table.csv?",
save = FALSE, sep = ";", swap = 20, try = TRUE)
trying URL
'http://ichart.yahoo.com/table.csv?s=IBM&a=11&b=1&c=1999&d=0&q=31&f=2000
&z=IBM&x=.csv'
Error in download.file(url = url, destfile = file, method = method) :
cannot open URL
'http://ichart.yahoo.com/table.csv?s=IBM&a=11&b=1&c=1999&d=0&q=31&f=2000
&z=IBM&x=.csv
In addition: Warning message:
unable to connect to 'ichart.yahoo.com' on port 80. in:
download.file(url = url, destfile = file, method = method)
[1] "No Internet Access"
>
But the same URL, I can download in the same machine. So, What could be
the problem?
BR, Shubha
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.