[R-pkg-devel] Skipping tests on CRAN

Mark van der Loo m@rk@v@nder|oo @end|ng |rom gm@||@com
Wed Apr 21 08:35:14 CEST 2021


Hi Ott,

There is no documented way to detect whether you are running on CRAN. So
there is nothing to rely on, on that side.

You can only make your own machine detectable by the test code. For example
by setting an environment variable that identifies your machine and make
test execution depend on the value of that environment variable. This is
what tinytest does under the hood.

Best,
Mark





On Wed, Apr 21, 2021 at 7:17 AM Ott Toomet <otoomet using gmail.com> wrote:

> Hi packagers,
>
> what is the best way to skip certain tests on CRAN?  So far I have included
> certain test files in .Rbuildignore and run the tests on the package
> directory.  But now when moving to Authors using R format, I get errors about
> missing maintainer etc.
>
> I know there are options in testthat, tinytest and such, are these the best
> options with least dependencies and assumptions built in?
>
> I sort of remember something in base R but cannot find anything when
> looking for it now.
>
> Cheers,
> Ott
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list