I have given an example in an R function which requires a Conda environment, tensorflow, keras, and pandas to run. I can run the example in my local system. But 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. How can I solve this problem?
[R-pkg-devel] How do you make it possible to run the example that requires a Conda environment?
2 messages · KABILAN S, Ivan Krylov
? Wed, 26 Feb 2025 08:57:10 +0000 KABILAN S <kabilan151414 at 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