Skip to content
Back to formatted view

Raw Message

Message-ID: <20250226144956.21c5e1c4@arachnoid>
Date: 2025-02-26T11:49:56Z
From: Ivan Krylov
Subject: [R-pkg-devel]  How do you make it possible to run the example that requires a Conda environment?
In-Reply-To: <AS8PR02MB101481E0D5A2A3073DE0B9486ACC22@AS8PR02MB10148.eurprd02.prod.outlook.com>

? 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