Message-ID: <CABtg=KmmCx_MBiqOAipjti63dx=FufnJQoOk=odYdPoRpEASbQ@mail.gmail.com>
Date: 2020-10-20T20:51:12Z
From: Gábor Csárdi
Subject: [R-pkg-devel] Usage of internet resources in examples
In-Reply-To: <5aa5062e-77c5-695a-0881-99649897b1bc@gmail.com>
On Tue, Oct 20, 2020 at 9:45 PM Ben Bolker <bbolker at 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
[...]