powered by
covr functions set the environment variable R_COVR to "true" while they are running. in_covr() returns TRUE if the environment variable is exactly "true" and FALSE otherwise, e.g. to skip tests that don't work while measuring coverage.
R_COVR
"true"
in_covr()
TRUE
FALSE
A single TRUE or FALSE.
testthat::skip_if(in_covr())
Run the code above in your browser using DataLab