[R] R cannot access the web?
hb at stat.berkeley.edu
Fri May 14 10:57:13 CEST 2010
On Fri, May 14, 2010 at 12:29 AM, Trojan <ypatel at usc.edu> wrote:
> 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
> How can I fix this? Thank you!
> 1) download.file("http://www.nytimes.com", destfile<-tempfile())
> 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")
> Selection: 43
> sh: wget: command not found
Make 'wget' available to R on search path. Verify by typing 'wget' at
the shell command prompt.
> 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
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help