On Fri, Nov 13, 2020 at 6:10 PM Henrik Bengtsson <henrik.bengts...@gmail.com> wrote: > > I'm quite sure you want to use the following: > > Suggests: knitr, rmarkdown, formatR > VignetteBuilder: knitr
So this means that WRE is wrong? It says: "Note that if, for example, a vignette has engine ‘knitr::rmarkdown’, then knitr provides the engine but both knitr and rmarkdown are needed for using it, so both these packages need to be in the ‘VignetteBuilder’ field and at least suggested (as rmarkdown is only suggested by knitr, and hence not available automatically along with it). Many packages using knitr also need the package formatR which it suggests and so the user package needs to do so too and include this in ‘VignetteBuilder’." My understanding is that R CMD build (and possibly other commands/functions as well) checks for the packages in 'VignetteBulider`, this is why you need to include rmarkdown and formatR as well. See the source code in build.R and e.g. https://bugs.r-project.org/bugzilla/show_bug.cgi?id=15775 etc. G. [...] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel