[R-pkg-devel] How do you make it possible to run the example that requires a Conda environment?

Ivan Krylov |kry|ov @end|ng |rom d|@root@org
Wed Feb 26 12:49:56 CET 2025


В Wed, 26 Feb 2025 08:57:10 +0000
KABILAN S <kabilan151414 using gmail.com> пишет:

> if I submit the package to CRAN, the example is not running and
> returning an error message. Even if I mention \donttest{} to avoid
> the automatic checking of example, the CRAN team members are not
> allowing.

Does it help to use if (reticulate::py_module_available(...)) { ... }
instead of \donttest{...} in your examples?

https://cran.r-project.org/web/packages/reticulate/vignettes/package.html#checking-and-testing-on-cran

-- 
Best regards,
Ivan



More information about the R-package-devel mailing list