Skip to content
Prev 46453 / 63421 Next

packages with Sweave and knitr vignettes?

On Fri, Aug 23, 2013 at 1:24 PM, Michael Friendly <friendly at yorku.ca> wrote:
The vignette-builder package for Sweave is 'utils' (not Sweave), so you want:

VignetteBuilder: utils, knitr

However, as said in 'Writing R Extensions', "The utils package is
always implicitly appended to the list of builder packages.", so you
don't really need to add it, but personally I'd say it's a nice
gesture to make it explicit which vignette-builder package you are
using.

Also, the full formal engine name for Sweave is utils::Sweave, so for
complete parallelism with knitr::knitr, you could be explicit and
write \VignetteEngine{utils::Sweave}.

/Henrik