File: in_covr.Rd

package info (click to toggle)
r-cran-covr 3.6.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,132 kB
  • sloc: javascript: 238; cpp: 74; ansic: 48; xml: 41; sh: 18; makefile: 11
file content (18 lines) | stat: -rw-r--r-- 469 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/covr.R
\name{in_covr}
\alias{in_covr}
\title{Determine if code is being run in covr}
\usage{
in_covr()
}
\description{
covr functions set the environment variable \code{R_COVR} when they are running.
\code{\link[=in_covr]{in_covr()}} returns \code{TRUE} if this environment variable is set and \code{FALSE}
otherwise.
}
\examples{
if (require(testthat)) {
  testthat::skip_if(in_covr())
}
}