Learn R Programming

covr (version 3.6.4)

in_covr: Determine if code is being run in covr

Description

covr functions set the environment variable R_COVR when they are running. in_covr() returns TRUE if this environment variable is set and FALSE otherwise.

Usage

in_covr()

Arguments

Examples

Run this code
if (require(testthat)) {
  testthat::skip_if(in_covr())
}

Run the code above in your browser using DataLab