Re: [R] Installing packages into updated R

From: Henric Nilsson <henric.nilsson_at_statisticon.se>
Date: Wed 21 Dec 2005 - 03:23:59 EST

On Ti, 2005-12-20, 16:11, Michael H. Prager skrev:

> 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?

If the previous installation is still alive, fire it up and

pS <- packageStatus()
pkgs <- pS$inst$Package[!pS$inst$Priority %in% c("base", "recommended")] save(pkgs, file = "foo")

In the new installation,

load("foo")
install.packages(pkgs)

HTH
Henric



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Dec 21 04:14:32 2005

This archive was generated by hypermail 2.1.8 : Wed 21 Dec 2005 - 09:33:11 EST