Determine if code is being run in covr
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.
in_covr()
if (require(testthat)) { testthat::skip_if(in_covr()) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.