file_report: A coverage report for a specific file

View source: R/report.R

file_reportR Documentation

A coverage report for a specific file

Description

A coverage report for a specific file

Usage

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

Arguments

x

a coverage dataset, defaults to running package_coverage().

file

The file to report on, if NULL, use the first file in the coverage output.

out_file

The output file

browse

whether to open a browser to view the report.


covr documentation built on Nov. 9, 2023, 9:07 a.m.