skip(message)skip_if_not(condition, message = deparse(substitute(condition)))
skip_if_not_installed(pkg)
skip_on_cran()
skip_on_os(os)
skip_on_travis()
skip_on_appveyor()
skip_on_bioc()
TRUE
, will
skip the test."windows"
, "mac"
, "linux"
and "solaris"
.skip_if_not()
works like stopifnot
, generating
a message automatically based on the first argument.skip_on_cran()
skips tests on CRAN, using the NOT_CRAN
environment variable set by devtools.
skip_on_travis()
skips tests on travis by inspecting the
TRAVIS
environment variable.
skip_on_appveyor()
skips tests on appveyor by inspecting the
APPVEYOR
environment variable.
skip_on_bioc()
skips tests on Bioconductor by inspecting the
BBS_HOME
environment variable.
skip_if_not_installed()
skips a tests if a package is not installed
(useful for suggested packages).
if (FALSE) skip("No internet connection")
Run the code above in your browser using DataLab