On 07.03.2025 16:57, Brian G. Peterson wrote:
\dontrun{} is allowed by CRAN.  If your package got rejected for using
\dontrun{} I would guess that maybe your example needs a package that
isn't in "Suggests" in your DESCRIPTION file.  Even in \dontrun{} you
should still tell the user that certain packages may be needed to
access specific optional functionality.


A package will rejected if \dontrun is not needed and there are better ways to structure the examples. Frequently code such as Ivan's proposal

   (reticulate::py_module_available(...)) { ... }

is perferrable, so that the code runs if the requirements are fullfilled / suggested packages are available.

Best,
Uwe Ligges




______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to