report: Display covr results using a standalone report

Description Usage Arguments Examples

View source: R/report.R

Description

Display covr results using a standalone report

Usage

1
2
report(x = package_coverage(), file = file.path(tempdir(),
  paste0(get_package_name(x), "-report.html")), browse = interactive())

Arguments

x

a coverage dataset, defaults to running package_coverage().

file

The report filename.

browse

whether to open a browser to view the report.

Examples

1
2
3
4
5
## Not run: 
x <- package_coverage()
report(x)

## End(Not run)

r-lib/covr documentation built on Nov. 5, 2018, 11:40 p.m.