nboehme at uni-potsdam.de
2009-Apr-02 12:37 UTC
[R] Installation of all packages under Unix
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:> 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
On Thu, 2009-04-02 at 14:37 +0200, nboehme at uni-potsdam.de wrote:> 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. BoehmeAll packages in CRAN install.packages(new.packages(),dep=T,clean=T) -- Bernardo Rangel Tura, M.D,MPH,Ph.D National Institute of Cardiology Brazil