I am using cacheSweave with a large LaTeX Sweave document. Rather than put
<<cache=true>>=
...snip...
@
in almost all of my code chunks, I would rather have cache=true
be the default, and use
<<cache=false>>=
...snip...
@
when I don't want a code chunk to be cached. How can I set this default argument for code chunks?
I am currently using the following code to compile the Sweave document:
library(cacheSweave)
Sweave(infile, driver = cacheSweaveDriver)
opts_chunk$set(cache=TRUE)
or\SweaveOpts{cache=TRUE}
in the knitr package (yihui.name/knitr), which also supports cache. – Epileptic