Skip to content

Installation of all packages under Unix

3 messages · nboehme at uni-potsdam.de, Paul Hiemstra, Bernardo Rangel Tura

#
Dear List-Members,

does anyone know a simple way to automatically install all R packages  
on a unix system to the default library path? Not from inside R, it  
should rather work as a shell script - job at startup.

Something like R cmd install -l pkgs ### where pkgs should mean all  
packages (is there an option to control overwriting?)

Thanks a lot,

N. Boehme
#
nboehme at uni-potsdam.de schreef:
Hi,

To get a lot of packages (not all), install the "ctv" package (Cran Task 
Views) and run:

library(ctv)
install.views(available.views())

This will install all the packages that are part of a Cran Task View, a 
sizeable amount.

A question: why would you want to install all R pacakges. It is not very 
likely that you are going to use them all.

cheers,
Paul
#
On Thu, 2009-04-02 at 14:37 +0200, nboehme at uni-potsdam.de wrote:
All packages in CRAN

install.packages(new.packages(),dep=T,clean=T)