Skip to content
Prev 2652 / 12125 Next

[R-pkg-devel] vignette via devtools: sometimes found, sometimes not (same package)

Dear all,

I have finally understood why my package installed from GitHub (via
devtools or drat) would display pre-built vignettes after a call to
browseVignettes() on most but not all computers (despite the vignettes
being physically present in all): if the package is installed on a computer
that has knitr installed, then it works; otherwise it fails.

I can thus fix this by adding knitr in the Imports instead of Suggests, or
by asking people to install with the option dependencies = TRUE.

I am still wondering why knitr is needed (the vignettes are pre-built), but
the workaround seems to work with a 100% success rate.

Thanks for all that tried to fix my issue...

I should have thought about knitr head on but I did not, and neither
sessionInfo() nor devtools::session_info() allows one to know if knitr is
installed or not, and I did not think of checking all installed packages
before.

Best,
Alex

On 20 April 2018 at 09:59, Martin Maechler <maechler at stat.math.ethz.ch>
wrote: