Roy Robertson
2008-Dec-12 17:47 UTC
[R] Make installed packages available to new R version
After installing a new version of R, how do I make the packages that I have already installed and use on the old version available to the new version? Thank you, Roy Robertson
Vitalie Spinu
2008-Dec-12 18:10 UTC
[R] Make installed packages available to new R version
Have a look at this http://thread.gmane.org/gmane.comp.lang.r.general/87014/focus=133050 it is safer to have all you packages reinstalled once you have updated R. HTH. On Fri, 12 Dec 2008 18:47:33 +0100, Roy Robertson <jroyrobertson at comcast.net> wrote:> After installing a new version of R, how do I make the packages that I > have already installed and use on the old version available to the new > version? > > Thank you, > > Roy Robertson > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
Roy Robertson <jroyrobertson at comcast.net> wrote:> After installing a new version of R, how do I make the packages that I > have already installed and use on the old version available to the new > version?Here is my solution. It has worked over many releases of R, though it will probably require one initial re-installation of packages. Set environment variable R_LIBS to some permanent directory before installing a version of R. (That is, NOT a directory under the tree of your current R version.) When you subsequently install packages, they will go into that location and won't need re-installation with each new version of R. It's still necessary to run update.packages() periodically -- such as after installing a new R version -- to keep the installed packages current. -- Mike Prager, NOAA, Beaufort, NC * Opinions expressed are personal and not represented otherwise. * Any use of tradenames does not constitute a NOAA endorsement.
Prof Brian Ripley
2008-Dec-12 19:35 UTC
[R] Make installed packages available to new R version
You have not told us your OS (despite the posting guide). For Windows this is covered in the rw-FAQ. Similar advice would apply on a Unix-alike. For Mac OS X, see the recent archives of the R-sig-mac list. E.g. the strangely titled threads (look in a threaded view) around https://stat.ethz.ch/pipermail/r-sig-mac/2008-November/005565.html (probably using the Package Installer). On Fri, 12 Dec 2008, Roy Robertson wrote:> After installing a new version of R, how do I make the packages that I have > already installed and use on the old version available to the new version? > > Thank you, > > Roy Robertson > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- 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 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595