Skip to content
Prev 9748 / 12125 Next

[R-pkg-devel] Switch between \dontrun{ } and \donttest{ }.

On 19/10/2023 8:17 p.m., Rolf Turner wrote:
I think the method used by the testthat package is best:  assume it is 
being run by CRAN, unless an environment variable named NOT_CRAN is set 
to "true" (or some string like that).  Then set the environment variable 
at home, where you know you are not on CRAN.

Duncan