Skip to content
Prev 14471 / 21312 Next

[Bioc-devel] Controlling vignette compilation order

Yes, I had noticed the vignettes.rds as well, and I figured that would be a problem.

I just tried setting set cache=TRUE in my vignettes, implemented such that BUILDing each downstream vignette will also run all upstream vignettes on which it depends (that haven?t already been compiled). If an upstream vignette is run in this manner, it caches the results of each code chunk to avoid repeated work when it gets compiled ?for real? by R CMD BUILD.

This seems to work on initial inspection (the caches are produced for the upstream vignettes upon running one downstream vignette). I?ll have to check whether this plays nice with R CMD BUILD. I will probably have to write a function to isolate the scope of the execution of each upstream vignette, to avoid polluting the namespace and cache of each downstream vignette.

-A