[R] how to update installed packages to a new version of R?
John Fox
jfox at mcmaster.ca
Wed Nov 6 17:51:52 CET 2002
Dear Mike,
At 08:07 AM 11/6/2002 -0500, Michael L Friendly wrote:
>I've just installed R 1.6.1 and would like to install all the contributed
>packages I had used in 1.5.1.
>It's not too hard to do this manually from Rgui, but I wondered if there
>is an easier way,
>something like writing the results of installed.packages() from 1.5.1 to a
>file and
>using that with install.packages() in 1.6.1, or just having 1.6.1 read
>what's in rw151/library.
What I do is set the environment variable R_LIBS to c:\R\Local (of course,
you can adjust this to reflect where you want the packages to reside on
your system). That way, all packages (beyond those in the R distribution)
get installed in this location. When I install a new version of R, all I
have to do is update the installed packages (via update.packages on the
Packages menu in Rgui).
For a start, you could copy all of your current contributed packages to a
local library directory and proceed as I suggested.
I hope that this help,
John
____________________________
John Fox
Department of Sociology
McMaster University
email: jfox at mcmaster.ca
web: http://www.socsci.mcmaster.ca/jfox
____________________________
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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