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

From: Gabor Grothendieck <>
Date: Wed, 02 May 2007 20:08:25 -0400

On 5/2/07, Jeffrey Wood <> wrote:
> Hello,
> 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?

This was just discussed in another thread but batchfiles on CRAN (which is a collection of Windows XP batch files, not an R package) contains movedir.bat and copydir.bat that will move or copy your packages from one version of R to another. See the home page:

which gives links to the README where its explained and to the CRAN download area from where you can download it.

movedir.bat is very fast (only a few seconds) but your packages will then only reside in the new version of R. copydir.bat is slower but makes copies rather than moving the packages. Neither will overwrite anything so they are both pretty safe to use. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 03 May 2007 - 00:13:15 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 03 May 2007 - 01:31:32 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.