[R] R cannot access the web?

Trojan ypatel at usc.edu
Fri May 14 00:29:19 CEST 2010


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

How can I fix this?  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.



More information about the R-help mailing list