Warnes, Gregory R
2004-Apr-14 02:42 UTC
[R] Makefile for installing all available packages
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}}
Kasper Daniel Hansen
2004-Apr-14 15:07 UTC
[R] Re: [BioC] Makefile for installing all available packages
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
Reasonably Related Threads
- Re: Need help on how to list functions from a loaded package...
- Re: Need help on how to list functions from a loaded pack age...
- [LLVMdev] UPDATE: Makefile.rules Changes (IMPORTANT)
- [PATCH] include /.emacs.d?
- [737] trunk/wxruby2/rake/rakepackage.rb: Ensure that lib/wx/classes/ .rb files are included in gem and tarball