[R] update.packages()

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed Aug 1 08:15:57 CEST 2001


On Wed, 1 Aug 2001, Andrew C. Ward wrote:

>
> Dear R users,
>
> I am using R Version 1.3.0 (2001-06-22) under Windows 2000 Professional (SP 2).
>
> When I try "Packages"->"Update packages from CRAN"
> the result is something like
>    trying URL `http://cran.r-project.org/bin/windows/contrib/PACKAGES'
>    unable to connect to 'cran.r-project.org'.
>    Error in download.file(url = paste(contriburl, "PACKAGES", sep = "/"),  :
>         cannot open URL `http://cran.r-project.org/bin/windows/contrib/PACKAGES'
>
> Opening the same URL in Internet Explorer opens PACKAGES okay. I had the
> impression (perhaps fanciful) that R used the same settings as IE. I'm less
> than knowledgeable about (among other things) proxies and sockets etc, but
> would greatly value your advice on getting this very handy feature working.

Try replacing modules/internet.dll by modules/internet2.dll.  Then it will
use the same settings as Internet Explorer.  (The docs for 1.3.0 did not
get updated.)  But what is there should work unless you need a proxy.

Do you need a proxy?  If so the correct info is

  Proxies can be specified via environment variables.
  Setting \code{"no_proxy"} stops any proxy being tried.
  Otherwise the setting of \code{"http_proxy"} or \code{"ftp_proxy"}
  (or failing that, the all upper-case version) is consulted and if
  non-empty used as a proxy site.  For FTP transfers, the username
  and password on the proxy can be specified by \code{"ftp_proxy_user"}
  and \code{"ftp_proxy_password"}.


Note that as I don't need a proxy, it is very hard for me to test that any
of this works as documented.

-- 
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list