[R-pkg-devel] How do you make it possible to run the example that requires a Conda environment?
Uwe Ligges
||gge@ @end|ng |rom @t@t|@t|k@tu-dortmund@de
Mon Mar 10 12:29:53 CET 2025
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
More information about the R-package-devel
mailing list