[R] update.packages()

Uwe Ligges ligges at statistik.uni-dortmund.de
Wed Aug 1 08:33:41 CEST 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.


The default for downloading files is "internal" since R-1.3.0.
For Windows 2000, you need to use the library 
 ...\rw1030\modules\internet2.dll 
instead of 
 ...\rw1030\modules\internet.dll. 
Simply rename the two files.

>From the CHANGES file:
"The default internet module modules\internet.dll is built using basic
WinSock calls.  There is an alternative modules\internet2.dll which uses
WinInet calls (and so needs Internet Explorer installed) which can be
used as a replacemnet."


If you have wget installed on your system, you can also use 
  update.packages(method="wget")


Uwe Ligges
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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