Skip to content
Prev 5514 / 12125 Next

[R-pkg-devel] Vignette depends on BH

On 02/06/2020 3:45 p.m., Tim Keitt wrote:
If a package is listed in Suggests, it should still work (possibly with 
diminished capabilities) when that package is not present.  So at the 
start of your vignette you could have something like

if (!require("BH")) {
   message("This vignette needs BH; since it is not installed, code will 
not be executed.")

   # Set default for chunk option "exec" to FALSE in all code chunks.
}

Duncan Murdoch