Learn R Programming

testthat (version 0.9.1)

skip: 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

Run this code
if (FALSE) skip("No internet connection")

Run the code above in your browser using DataLab