[R] Installation of all packages under Unix

Paul Hiemstra p.hiemstra at geo.uu.nl
Thu Apr 2 22:24:32 CEST 2009


nboehme at uni-potsdam.de schreef:
> 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
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide 
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
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

-- 
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone:  +3130 274 3113 Mon-Tue
Phone:  +3130 253 5773 Wed-Fri
http://intamap.geo.uu.nl/~paul




More information about the R-help mailing list