[R] Installing packages into updated R

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Dec 20 17:06:06 CET 2005


Michael H. Prager wrote:
> A minor inconvenience in updating an R installation is remembering which 
> packages were installed previously.  Has anyone written a script to 
> inspect a previous installation, then get & install the same packages 
> into the new installation?

x <- installed.packages()[,1]
install.packages(x)

Uwe Ligges




More information about the R-help mailing list