Skip to content

R won't connect to the internet on SUSE Linux 8.1

3 messages · michael watson (IAH-C), Jeff Gentry, Brian Ripley

#
Hi Henrik

Thanks for your help, I really do appreciate it.

If I follow your instructions, R returns the value http://wwwcache.bbsrc.ac.uk:8080.  That is good and it means that indeed my http_proxy environment variable is set.

I have also added the lines

http_proxy=http://wwwcache.bbsrc.ac.uk:8080/
HTTP_PROXY=http://wwwcache.bbsrc.ac.uk:8080/

both to .Renviron in my home directory, and to /usr/lib/R/etc/Renviron and /usr/lib/R/etc/Renviron.site.

All to no avail... R still doesn't try to connect through my proxy server.  

Please, I genuinely think this is a bug in R 1.7.1 on Suse Linux 8.1.

NOW, here is a little detail I have just discovered that PROVES my proxy is working.  

If I do:

update.packages(method="wget")

then everything works fine.... hmmmm, but I still have a problem as the command I really want to run is :

source("http://wwwbioconductor.org/getBioC.R")

and source() does not accept an option 'method="wget"'....

SO... is there a way in R that I can set it up such that ALL internet connections from within R use method="wget" ??

Thanks
Mick

-----Original Message-----
From: Henrik Bengtsson [mailto:hb at maths.lth.se]
Sent: 25 July 2003 11:25
To: 'michael watson (IAH-C)'
Cc: R-help at stat.math.ethz.ch
Subject: RE: [R] R won't connect to the internet on SUSE Linux 8.1


Could it be that you have redefined the command R in your shell such
that the http_proxy environment variable is set in one and R is running
in another? (This is just a wild guess and I am myself only running
WinXP.) What do you get if you do

% env http_proxy=http://wwwcache.bbsrc.ac.uk:8080/
% R
Also, have you considered setting http_proxy in ~/.Renviron (see
?.Renviron).

Cheers

Henrik Bengtsson
Lund University
#
getBioC() accepts the 'method' parameter as per its documentation.
#
On Fri, 25 Jul 2003, michael watson (IAH-C) wrote:

            
[...]

RTFM once again!

options(download.file.method="wget")