skip {testthat}R Documentation

Skip a test.

Description

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.

Usage

skip(message)

skip_on_cran()

Arguments

message

An message describing why the test was skipped.

Examples

if (FALSE) skip("No internet connection")

[Package testthat version 0.9.1 Index]