[Rd] R won't use http_proxy (PR#3558)

Paul Gilbert pgilbert at bank-banque-canada.ca
Fri Jul 25 10:59:02 MEST 2003


michael.watson at bbsrc.ac.uk wrote:

>Full_Name: Michael Watson
>Version: 1.7.1
>OS: Suse Linux 8.1
>Submission from: (NULL) (149.155.96.3)
>
>
>I am using Suse Linux 8.1:
>
>IAHC-LINUX03:~ # uname -a
>Linux IAHC-LINUX03 2.4.20-64GB-SMP #1 SMP Mon Mar 17 17:56:03 UTC 2003 i686
>unknown unknown GNU/Linux
>
>and R 1.7.1:
>
>IAHC-LINUX03:~ # R --version
>R 1.7.1 (2003-06-16).
>Copyright (C) 2003 R Development Core Team
>
>R is free software and comes with ABSOLUTELY NO WARRANTY.
>You are welcome to redistribute it under the terms of the GNU
>General Public License.  For more information about these matters,
>see http://www.gnu.org/copyleft/gpl.html.
>
>I have set my http_proxy environment variable to http://wwwcache.bbsrc.ac.uk,
>which is the correct address of my proxy.  When I try update.packages() within
>R, it does NOT use my proxy at all:
>
>IAHC-LINUX03:~ # echo $http_proxy
>http://wwwcache.bbsrc.ac.uk:8080/
>IAHC-LINUX03:~ # R
>  
>
You might need to
    export  http_proxy
before you start R.  (Perhaps this is obvious, but I say it just to be 
sure.) Once R is started try
    Sys.getenv("http_proxy")
to make sure the R process sees it.  Other than that, you might try  
method wget, and then you can test that wget works completely outside of 
R.  One more remote possibility is that you also need ssl_proxy set (and 
exported) since some paranoid systems apparently require ssl on 
connections to the http proxy (or something strange like that).

Paul Gilbert

>R : Copyright 2003, The R Development Core Team
>Version 1.7.1  (2003-06-16)
>
>R is free software and comes with ABSOLUTELY NO WARRANTY.
>You are welcome to redistribute it under certain conditions.
>Type `license()' or `licence()' for distribution details.
>
>R is a collaborative project with many contributors.
>Type `contributors()' for more information.
>
>Type `demo()' for some demos, `help()' for on-line help, or
>`help.start()' for a HTML browser interface to help.
>Type `q()' to quit R.
>
>[Previously saved workspace restored]
>
>  
>
>>options(internet.info=0)
>>update.packages()
>>    
>>
>trying URL `http://cran.r-project.org/src/contrib/PACKAGES'
>unable to connect to 'cran.r-project.org' on port 80.
>Error in download.file(url = paste(contriburl, "PACKAGES", sep = "/"),  :
>        cannot open URL `http://cran.r-project.org/src/contrib/PACKAGES'
>
>
>You will note that R does not state that it is using a proxy server.
>
>______________________________________________
>R-devel at stat.math.ethz.ch mailing list
>https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
>  
>



More information about the R-devel mailing list