Description Usage Arguments Value Examples
Use readHTMLTable
to covert the report of code coverage
into a list of two data frames or matrices of percentages.
1 | readCodeCoverage(doc, ...)
|
doc |
HTML document which can be a file name or a URL or an already parsed HTMLInternalDocument, or an HTML node of class XMLInternalElementNode, or a character vector containing the HTML content to parse and process. |
... |
Other arguments passed to |
A list of two data frames or matrices, the 1st is Package, 2nd is Class.
1 2 3 4 5 6 7 8 | code.coverage <- readCodeCoverage("code_coverage/index.html")
# $Package
# Package Class % Method % Line %
# 1 all classes 38.2 26.1 26.6
# $Class
# Package Class % Method % Line %
# 1 beast.app 36.4 8.9 1
# 2 beast.app.beastapp 20 2.7 0.5
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.