Skip to content
Prev 8063 / 12125 Next

[R-pkg-devel] nit-picking about CRAN repository policy

In my opinion, vignettes -- as opposed to examples and tests -- should 
be allowed to depend on suggested packages without having to 
conditionalize their use in the code (if they can straightforwardly be 
installed on the major R platforms). The vignette system is already 
prepared to handle \VignetteDepends metadata, which is checked to only 
list packages from the DESCRIPTION Depends/*Suggests*/Imports entries. R 
CMD check could skip vignette processing if the stated requirements are 
not fulfilled -- possibly with a note citing WRE that suggested packages 
are needed for a complete check, similar to the note that we'd already 
get from the "checking package dependencies" step: "Package suggested 
but not available for checking".

I think such a setup would highlight the importance of vignette 
reproducibility (whereas conditionalizing suggested packages would 
simply give OK without having executed all the code), but reduces the 
amount of failures on check servers when vignette dependencies become 
unavailable.

There is a related report in R's Bugzilla 
<https://bugs.r-project.org/show_bug.cgi?id=18318>.

Best regards,

	Sebastian Meyer


Am 09.05.22 um 00:13 schrieb Simon Urbanek: