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.
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 X86Unable 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
Check if your network has a proxy. see ?setInternet2 On Thu, May 13, 2010 at 7:29 PM, Trojan <ypatel@usc.edu> 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 > > 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. > > ______________________________________________ > R-help@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 [[alternative HTML version deleted]]
On Fri, May 14, 2010 at 12:29 AM, Trojan <ypatel at usc.edu> 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 > > 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 foundMake 'wget' available to R on search path. Verify by typing 'wget' at the shell command prompt. My $.02 /H> 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. >