[R-pkg-devel] problem with donttest example
murdoch@dunc@n @end|ng |rom gm@||@com
Tue Jan 26 12:20:30 CET 2021
On 26/01/2021 5:05 a.m., Olivier Martin (BioSP) wrote:
> Hi all,
> R CMD check --as-cran now runs \donttest examples .
> So what is the right way to avoid it, and what is the right way for submission to CRAN.
Why are you listing the examples as \donttest? If it's because they
will fail on CRAN, wouldn't they fail on a user's system? Then you
should fix the examples so they don't fail.
If you marked them that way because they violate some CRAN policy (e.g.
writing to a user's home directory), then you should fix them. Those
policies are there to protect users.
If you marked them that way because they take too long to run, then it
seems like CRAN shouldn't complain about the run time. I don't know if
they do or not.
More information about the R-package-devel