[R] update.packages with proxy?

RINNER Heinrich H.RINNER at TIROL.GV.AT
Mon Sep 3 09:11:09 CEST 2001


This reminds me of a question I've never asked yet: Is there a trick to make
this work when a username authentication is required for using the proxy?
I need a user name and a password to connect to the Internet, and so I get:
> version
         _              
platform i386-pc-mingw32
arch     x86            
os       Win32          
system   x86, Win32     
status                  
major    1              
minor    3.0            
year     2001           
month    06             
day      22             
language R              
> CRAN.packages()
trying URL `http://cran.r-project.org/bin/windows/contrib/PACKAGES'
Error in download.file(url = paste(contriburl, "PACKAGES", sep = "/"),  : 
        cannot open: HTTP status was `407 Proxy authorization required'
> 

I understand why this does not work, but don't know what I can do about it.

Heinrich.


> ----------
> Von: 	Prof Brian Ripley[SMTP:ripley at stats.ox.ac.uk]
> Gesendet: 	Samstag, 01. September 2001 10:18
> An: 	Philippe Grosjean
> Cc: 	Kenneth Cabrera; R-help at stat.math.ethz.ch
> Betreff: 	RE: [R] update.packages with proxy?
> 
> On Sat, 1 Sep 2001, Philippe Grosjean wrote:
> 
> > You don't tell which system you are running on. But if it is Windows, it
> is
> > possible to use update.package() through a proxy with the following
> > modifications:
> >
> > - Go to the subdirectory 'modules'. You will find there 'internet.dll'
> and
> > 'internet2.dll'.
> > - Rename 'internet.dll' whatever you want. For instance 'internet.old'
> > - Rename 'internet2.dll' to 'internet.dll'
> >
> > Now, R will use the same configuration as Internet Explorer does. If you
> can
> > access the web via Internet Explorer through a proxy, i.e., if you
> correctly
> > configure it, then, it should now be the same for R.
> >
> > If I understand, primary 'internet.dll' is more reliable but it bypass
> > internet access configuration of IE. 'internet2.dll' is provided as an
> > alternative in cases where 'internet.dll' fails, like an access through
> a
> > proxy.
> 
> internet.dll also works through a proxy.  Why it fails on some Windows
> systems is unknown: we have been unable to reproduce the problem.  Now
> 1.3.1 is released, the documentation shows how to set proxies for each.
> (Binaries for 1.3.1 are not yet on CRAN.)
> 
> -- 
> 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 272860 (secr)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
> -.-.-
> r-help mailing list -- Read
> http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
> _._._
> 
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list