Makefile for installing all available packages
1
0
Entering edit mode
@warnes-gregory-r-43
Last seen 9.6 years ago
Below is a makefile I wrote to download and install all available R packages from the CRAN and BioConductor package repositories. The primary advantage of using this makefile instead of R's built-in install.package() and update.packages() is the creation of a separate installation log for every package. Further, if make is invoked with '-k', failure to install a single package will not derail the installation of other packages. I hope that this script may be useful to other folks. -Greg # Download and install all available R packages from the CRAN and Bioconductor # package repositories # RCMD ?= R-1.9.0 WGET ?= wget -N -nd -r -A gz -r -l 1 -nv PACKAGE_FILES = $(wildcard *.gz ) PACKAGE_LOGS = $(addsuffix .log, $(basename $(basename $(PACKAGE_FILES)))) default: cran bioconductor install cran: $(WGET) "http://cran.r-project.org/src/contrib/PACKAGES.html" bioconductor: bioCmain bioCcontrib bioCdata bioCmain: $(WGET) "http://www.bioconductor.org/repository/release1.3/package/html/index. html" bioCcontrib: $(WGET) "http://www.bioconductor.org/contrib/index.html" bioCdata: $(WGET) "http://www.bioconductor.org/data/metaData.html" install: $(PACKAGE_LOGS) %.log: %.tar.gz $(RCMD) INSTALL $< > $@.broken 2>&1 mv $@.broken $@ LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}
• 996 views
ADD COMMENT
0
Entering edit mode
@kasper-daniel-hansen-459
Last seen 9.6 years ago
On Tue, Apr 13, 2004 at 10:42:08PM -0400, Warnes, Gregory R wrote: > Below is a makefile I wrote to download and install all available R packages > from the CRAN and BioConductor package repositories. You do not find it a bit overkill to install all of CRAN per default? -- Kasper Daniel Hansen, Research Assistant Department of Biostatistics, University of Copenhagen
ADD COMMENT

Login before adding your answer.

Traffic: 842 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6