[R] How to install previous packages after upgrading to R 2.5.0?

Don MacQueen macq at llnl.gov
Thu May 3 16:45:35 CEST 2007

I use a script, i.e., place a few lines of R code in a file:

## create a vector of package names
my.packages <- c('pkgname1','pkgname2','pkgname3')

## install them (check whether other args to install.packages() need 
to be specified)

and then source the script. Keep the script around, then on every 
upgrade to R, just source it again.


At 2:12 PM -0700 5/2/07, Jeffrey Wood wrote:
>I have just upgraded from R-2.4.1 to R-2.5.0 for Windows.
>I had installed a large number of add-on packages under 2.4.1. Is 
>there an easy way to install (or load, if that's the easier way) 
>those packages under 2.5.0, without having to install each package 
>by hand?
>R-help at stat.math.ethz.ch mailing list
>PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA

More information about the R-help mailing list