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]]

