[R] Downloading Yahoo data

Henrique Dallazuanna wwwhsd at gmail.com
Thu Aug 7 16:46:49 CEST 2008


You are connecting to the internet trougth a proxy?

On Thu, Aug 7, 2008 at 9:40 AM, Shubha Vishwanath Karanth
<shubhak at ambaresearch.com> wrote:
> Hi R,
>
>
>
> I am trying to download the data from R. I give the below command.
>
>
>
>> library(fImport)
>
>> yahooSeries("IBM")
>
> trying URL
> 'http://chart.yahoo.com/table.csv?s=IBM&a=7&b=08&c=2007&d=7&e=07&f=2008&
> g=d&x=.csv'
>
> Error in download.file(url = url, destfile = file, method = method) :
>
>  cannot open URL
> 'http://chart.yahoo.com/table.csv?s=IBM&a=7&b=08&c=2007&d=7&e=07&f=2008&
> g=d&x=.csv'
>
> In addition: Warning message:
>
> In download.file(url = url, destfile = file, method = method) :
>
>  unable to connect to 'chart.yahoo.com' on port 80.
>
> Error: cannot get a slot ("data") from an object of type "character"
>
> In addition: Warning message:
>
> trying to get slot "data" from an object of a basic class ("character")
> with no slots
>
>
>
>
>
> The problem is related with connection of R with the internet. But my
> port 80 is opened. Then also the error persists.
>
>
>
> And also, the link is accessible in my PC via the direct internet. How
> do I make this work?
>
>
>
> Many Thanks,
>
> Shubha
>
>
>
> This e-mail may contain confidential and/or privileged i...{{dropped:13}}
>
> ______________________________________________
> R-help at r-project.org 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.
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O



More information about the R-help mailing list