opensubscriber
   Find in this group all groups
 
Unknown more information…

r : r-help@stat.math.ethz.ch 1 September 2007 • 9:33PM -0400

[R] Problem in downloading Yahoo Finance data from R
by Shubha Vishwanath Karanth

REPLY TO AUTHOR
 
REPLY TO GROUP




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]]

______________________________________________
R-help@stat... 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.

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.