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@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

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to