[R-pkg-devel] Skipping tests on CRAN
Duncan Murdoch
murdoch@dunc@n @end|ng |rom gm@||@com
Wed Apr 21 09:47:44 CEST 2021
On 21/04/2021 1:16 a.m., Ott Toomet 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.
The base solution is to put your local-only tests in another directory,
and specify it using "--test-dir=". One of the scripts there can run
the files in the regular tests directory, so you get both sets with that
option, but CRAN will only run the regular ones.
Duncan Murdoch
More information about the R-package-devel
mailing list