On Tue, Oct 20, 2020 at 9:45 PM Ben Bolker <bbol...@gmail.com> wrote:
[...]
>    if (testthat::skip_on_cran())
>
> all seem like reasonable solutions.

I don't think you can use `testthat::skip_on_cran()` for this, it does
not return a logical flag:

❯ isTRUE(testthat::skip_on_cran())
Error: Reason: On CRAN

It only works in testthat tests.

Gabor

[...]

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

Reply via email to