file_report() saves the coverage of one file as a standalone HTML file and
opens it. file_report_html() creates the same report as HTML that can be
included in a larger document, like report_html().
file_report(
x = package_coverage(),
file = NULL,
out_file = file.path(tempdir(), paste0(get_package_name(x), "-file-report.html")),
browse = interactive()
)file_report_html(x = package_coverage(), file = NULL)
file_report() returns the absolute path of the report file,
invisibly.
file_report_html() returns an htmltools::tagList(), with the
dependencies of the report attached.
a coverage dataset, defaults to running package_coverage().
The file to report on, if NULL, use the first file in the
coverage output.
The output file
whether to open a browser to view the report.
With branch coverage, the report shows the branches of the file as described
in the "Branches" section of report().