Skip to content

How to skip re-installing CRAN packages when updating R?

2 messages · Sean Zhang, Brian Ripley

#
Please do study the posting guide: you have not told us your platform and 
it does matter.

For Windows and Mac OS X see the appropriate FAQ.
On Wed, 24 Dec 2008, Sean Zhang wrote:

            
Use a separate library directory.  You will need to re-install for updates 
to dot-0 releases (e.g. 2.9.0) but update.packages(checkBuilt=TRUE) does 
that for you.
Not a good idea as you already have some, the recommended packages.
install.packages(new.packages()) would be better.  And yes, quite a few 
sites do things like that, but do bear in mind the costs on the CRAN 
servers (we keep a local mirror and install from that).
It will take more than 2 hours for a source install except for a parallel 
install on a very fast machine.  For example, the Windows build takes 8 
CPU hours 
(http://cran.r-project.org/bin/windows/contrib/checkSummaryWin.html) and I 
think my x86_64 Linux server takes about 3 elapsed hours and 3GB for the 
installed packages.  (There is no built-in support for parallel installs, 
although some of us have written private versions.)