in_covr: Determine if code is being run in covr

View source: R/covr.R

in_covrR Documentation

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()

Examples

if (require(testthat)) {
  testthat::skip_if(in_covr())
}

covr documentation built on Nov. 9, 2023, 9:07 a.m.