michael watson (IAH-C)
2003-Jul-24 11:51 UTC
[R] R won't connect to the internet on Linux!
OK, I really am struggling with this one! Forgive me if I am being stupid.... I am running R 1.7.1 on Suse Linux 8.1. I connect to the internet through a proxy so I have: IAHC-LINUX03:~ # echo $http_proxy wwwcache.bbsrc.ac.uk:8080 IAHC-LINUX03:~ # echo $HTTP_PROXY wwwcache.bbsrc.ac.uk:8080 just in case ;-) SO, i go into R and I get:> source("http://www.bioconductor.org/getBioC.R")unable to connect to 'www.bioconductor.org' on port 80. Error in file(file, "r") : cannot open URL `http://www.bioconductor.org/getBioC.R' OK so is R just not picking up my proxy setting? It seems to be trying port 80 on something, and I have specifically set it to port 8080 in my environment variables. As far as I can see I have followed the reference manual suggestion, so does anyone else have one? Thanks Mick
On Thu, 24 Jul 2003, michael watson (IAH-C) wrote:> OK, I really am struggling with this one! Forgive me if I am being stupid....> I am running R 1.7.1 on Suse Linux 8.1. I connect to the internet > through a proxy so I have: > > IAHC-LINUX03:~ # echo $http_proxy > wwwcache.bbsrc.ac.uk:8080 > IAHC-LINUX03:~ # echo $HTTP_PROXY > wwwcache.bbsrc.ac.uk:8080 > > just in case ;-) > > SO, i go into R and I get: > > > source("http://www.bioconductor.org/getBioC.R") > unable to connect to 'www.bioconductor.org' on port 80. > Error in file(file, "r") : cannot open URL `http://www.bioconductor.org/getBioC.R' > > OK so is R just not picking up my proxy setting?Your setting is wrong, so it is being ignored. The help page says quite explicitly The form of `"http_proxy"' should be `"http://proxy.dom.com/"' or `"http://proxy.dom.com:8080/"' where the port defaults to `80' and the trailing slash may be omitted.> It seems to be trying > port 80 on something, and I have specifically set it to port 8080 in my > environment variables. As far as I can see I have followed the > reference manual suggestion, so does anyone else have one?The problem is in your seeing, it seems. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
michael watson (IAH-C)
2003-Jul-24 13:16 UTC
[R] R won't connect to the internet on Linux!
Hello Professor If you are suggesting that I am simply missing the "http://" part of my cache URL, or that I am missing a trailing "/", then I pre-empted this response and it still doesn't work. I have tried setting both http_proxy and HTTP_PROXY to all of: wwwcache.bbsrc.ac.uk:8080 http://wwwcache.bbsrc.ac.uk:8080 wwwcache.bbsrc.ac.uk:8080/ http://wwwcache.bbsrc.ac.uk:8080/ and I still get the same response - R cannot open the URL. And yes, that is thw right proxy address, I copied it straight from Netscape on the same computer, and Netscape connects to the internet fine. Thanks Mick -----Original Message----- From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk] Sent: 24 July 2003 13:17 To: michael watson (IAH-C) Cc: 'R-help at stat.math.ethz.ch ' Subject: Re: [R] R won't connect to the internet on Linux! On Thu, 24 Jul 2003, michael watson (IAH-C) wrote:> OK, I really am struggling with this one! Forgive me if I am being stupid....> I am running R 1.7.1 on Suse Linux 8.1. I connect to the internet > through a proxy so I have: > > IAHC-LINUX03:~ # echo $http_proxy > wwwcache.bbsrc.ac.uk:8080 > IAHC-LINUX03:~ # echo $HTTP_PROXY > wwwcache.bbsrc.ac.uk:8080 > > just in case ;-) > > SO, i go into R and I get: > > > source("http://www.bioconductor.org/getBioC.R") > unable to connect to 'www.bioconductor.org' on port 80. > Error in file(file, "r") : cannot open URL `http://www.bioconductor.org/getBioC.R' > > OK so is R just not picking up my proxy setting?Your setting is wrong, so it is being ignored. The help page says quite explicitly The form of `"http_proxy"' should be `"http://proxy.dom.com/"' or `"http://proxy.dom.com:8080/"' where the port defaults to `80' and the trailing slash may be omitted.> It seems to be trying > port 80 on something, and I have specifically set it to port 8080 in my > environment variables. As far as I can see I have followed the > reference manual suggestion, so does anyone else have one?The problem is in your seeing, it seems. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
michael watson (IAH-C)
2003-Jul-24 14:11 UTC
[R] R won't connect to the internet on Linux!
You're right, I have tried keeping the double quotes in there too and that doesn't work What is clear is that R is completely ignoring my http_proxy environment variable, as it's error says "unable to connect on port 80", when every single one of my http_proxy attempts has stipulates port 8080.... I know for a fact that my proxy isn't going to work on port 80..... So what I need to know is why R is choosing to ignore http_proxy???? -----Original Message----- From: Bashir Saghir (Aztek Global) [mailto:Saghir.Bashir@UCB-Group.com] Sent: 24 July 2003 15:06 To: 'michael watson (IAH-C)' Subject: RE: [R] R won't connect to the internet on Linux! I'm not 100% sure but I think the double quotes are needed too. You've probably done this too. Saghir -----Original Message----- From: michael watson (IAH-C) [SMTP:michael.watson@bbsrc.ac.uk] Sent: Thursday, 24 July, 2003 3:16 PM To: 'Prof Brian Ripley' Cc: 'R-help@stat.math.ethz.ch ' Subject: RE: [R] R won't connect to the internet on Linux! Hello Professor If you are suggesting that I am simply missing the " http:// <http://> " part of my cache URL, or that I am missing a trailing "/", then I pre-empted this response and it still doesn't work. I have tried setting both http_proxy and HTTP_PROXY to all of: wwwcache.bbsrc.ac.uk:8080 http://wwwcache.bbsrc.ac.uk:8080 <http://wwwcache.bbsrc.ac.uk:8080> wwwcache.bbsrc.ac.uk:8080/ http://wwwcache.bbsrc.ac.uk:8080/ <http://wwwcache.bbsrc.ac.uk:8080/> and I still get the same response - R cannot open the URL. And yes, that is thw right proxy address, I copied it straight from Netscape on the same computer, and Netscape connects to the internet fine. Thanks Mick -----Original Message----- From: Prof Brian Ripley [ mailto:ripley@stats.ox.ac.uk <mailto:ripley@stats.ox.ac.uk> ] Sent: 24 July 2003 13:17 To: michael watson (IAH-C) Cc: 'R-help@stat.math.ethz.ch ' Subject: Re: [R] R won't connect to the internet on Linux! On Thu, 24 Jul 2003, michael watson (IAH-C) wrote: > OK, I really am struggling with this one! Forgive me if I am being stupid.... > I am running R 1.7.1 on Suse Linux 8.1. I connect to the internet> through a proxy so I have: > > IAHC-LINUX03:~ # echo $http_proxy > wwwcache.bbsrc.ac.uk:8080 > IAHC-LINUX03:~ # echo $HTTP_PROXY > wwwcache.bbsrc.ac.uk:8080 > > just in case ;-) > > SO, i go into R and I get: > > > source(" http://www.bioconductor.org/getBioC.R <http://www.bioconductor.org/getBioC.R> ") > unable to connect to 'www.bioconductor.org' on port 80. > Error in file(file, "r") : cannot open URL ` http://www.bioconductor.org/getBioC.R' <http://www.bioconductor.org/getBioC.R'> > > OK so is R just not picking up my proxy setting?Your setting is wrong, so it is being ignored. The help page says quite explicitly The form of `"http_proxy"' should be `" http://proxy.dom.com/ <http://proxy.dom.com/> "' or `" http://proxy.dom.com:8080/ <http://proxy.dom.com:8080/> "' where the port defaults to `80' and the trailing slash may be omitted. > It seems to be trying> port 80 on something, and I have specifically set it to port 8080 in my > environment variables. As far as I can see I have followed the > reference manual suggestion, so does anyone else have one?The problem is in your seeing, it seems. -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ <http://www.stats.ox.ac.uk/~ripley/> University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 ______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help <https://www.stat.math.ethz.ch/mailman/listinfo/r-help> --------------------------------------------------------- Legal Notice: This electronic mail and its attachments are i...{{dropped}}