Learn R Programming

covr (version 2.2.2)

report: Display covr results using a standalone report

Description

Display covr results using a standalone report

Usage

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

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

Arguments

x

a coverage dataset

file

The report filename.

browse

whether to open a browser to view the report.

Examples

Run this code

x <- package_coverage()
report(x)

Run the code above in your browser using DataLab