These functions facilitate the creation of reports for coverage of a single file.
1 2 3 4 5 6 7 8 9 10 11 12 | .renderSourceRow(line, source, coverage)
.renderSourceFile(lines, file = "source", highlight = TRUE)
.single_file_summary(file_stats)
.renderReport(
coverage,
report.file,
dir = dirname(report.file),
libdir = file.path(dir, "lib")
)
|
line, lines |
Line(s) number |
source |
source file |
coverage |
The number of times covered |
file |
the file in question |
highlight |
Highlight the row. |
file_stats |
The coverage object for the file. |
report.file |
Where to output the HTML report. |
dir |
the base directory for the HTML output |
libdir |
Where to put html dependencies? |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.