| skip {testthat} | R Documentation |
This function allows you to skip a test if it's not currently available.
This will produce an informative message, but will not cause the test
suite to fail. skip_on_cran() uses skip(), together with
the NOT_CRAN environment variable (set by devtools), to automatically
skip tests that should not be run on CRAN.
skip(message) skip_on_cran()
message |
An message describing why the test was skipped. |
if (FALSE) skip("No internet connection")