Skip to content
Prev 2522 / 12125 Next

[R-pkg-devel] Avoid reprocessing Rmd vignette

2018-03-19 3:57 GMT+01:00 Tim Keitt <tkeitt at utexas.edu>:
One of my packages on CRAN contains a vignette with a benchmark. You
can check what I do here (search for "microbenchmark"):

https://raw.githubusercontent.com/r-simmer/simmer/master/vignettes/simmer-07-ctmc.Rmd

Basically, those chunks that use microbenchmark are marked as
"eval=FALSE", and the resulting figures are static images. I run those
manually and update the images from time to time if something relevant
changed. Apart from saving compilation time, this way I don't need to
include microbenchmark as a dependency.

I?aki