Skip to navigation

R: Installing weaver to cache Sweave code chunks

The package weaver lets you cache code chunks in your .Rnw file so the computations don’t have to be repeated if you only make small changes to the document — potentially a huge timesaver.

If you simply try to install it using install.packages(), you will get the message that the package weaver cannot be found. Instead, you have to do the following. Get package “digest” if you don’t have it yet (I didn’t). In R, as root (unless you have a per-user local installation):

install.packages("digest")

Then:

source("http://bioconductor.org/biocLite.R")
biocLite("weaver")

Look at the documentation on the weaver site for information on how to use it, from within R or from a shell script.

Comments are closed.