package_coverage
From covr v2.0.1
by Jim Hester
Calculate test coverage for a package
Calculate test coverage for a package
Usage
package_coverage(path = ".", type = c("tests", "vignettes", "examples",
"all", "none"), combine_types = TRUE, relative_path = TRUE,
quiet = TRUE, clean = TRUE, line_exclusions = NULL,
function_exclusions = NULL, code = character(), ..., exclusions)
Arguments
- path
- file path to the package
- type
- run the package
test ,vignette ,example ,all , ornone . The default istest . - combine_types
- If
TRUE
(the default) the coverage for all types is simply summed into one coverage object. IfFALSE
separate objects are used for each type of coverage. - relative_path
- whether to output the paths as relative or absolute paths.
- quiet
- whether to load and compile the package quietly
- clean
- whether to clean temporary output files after running.
- line_exclusions
- a named list of files with the lines to exclude from each file.
- function_exclusions
- a vector of regular expressions matching function
names to exclude. Example
print\.
to match print methods. - code
- Additional test code to run.
- ...
- Additional arguments passed to
testInstalledPackage
- exclusions
Deprecated , please useline_exclusions instead.
See Also
exclusions
Community examples
Looks like there are no examples yet.