[R] R cannot access the web?

David Winsemius dwinsemius at comcast.net
Fri May 14 01:02:35 CEST 2010


On May 13, 2010, at 6:29 PM, Trojan wrote:

>
> Hi,
>
> I had originally posted regarding an error when trying to install  
> package -
> GenABEL - it has now become clear that R is not able to connect to  
> the net.
> Below are a couple of things I've tried with the resulting errors
>
> I am running R 2.6.2 on Linux e15 X86

Unable to reproduce with a more current version of R (2.10.1 RC  
(2009-12-09 r50695) ) on a Leopard Mac.

download.file("http://www.nytimes.com", destfile<-tempfile())
trying URL 'http://www.nytimes.com'
Content type 'text/html' length unknown
opened URL
.......... .......... .......... .......... ..........
.......... .......... .......... .......... ..........
.......... ......
downloaded 116 Kb


>
> How can I fix this?

Have you considered updating your R installation?

-- 
David.

> Thank you!
>
>
> 1)  download.file("http://www.nytimes.com", destfile<-tempfile())
>
> Error:
> trying URL 'http://www.nytimes.com'
> Error in download.file("http://www.nytimes.com", destfile <-  
> tempfile()) :
>  cannot open URL 'http://www.nytimes.com'
> In addition: Warning message:
> In download.file("http://www.nytimes.com", destfile <- tempfile()) :
>  unable to resolve 'www.nytimes.com'
>
>
> 2) install.packages("GenABeL", lib= "/home/software/GenABEL", dep =  
> TRUE,
> method = "wget")
>
> Error:
> Selection: 43
> sh: wget: command not found
> Error in gzfile(file, "r") : unable to open connection
> In addition: Warning messages:
> 1: In open.connection(con, "r") : unable to resolve 'cran.r- 
> project.org'
> 2: In gzfile(file, "r") :
>  cannot open compressed file
> '/tmp/8379702.hpc-pbs.usc.edu/RtmpmUR48z/file66334873', probable  
> reason 'No
> such file or directory'
>
> -- 
> View this message in context: http://r.789695.n4.nabble.com/R-cannot-access-the-web-tp2215881p2215881.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list