readCodeCoverage: Use 'readHTMLTable' to covert the report of code coverage...

Description Usage Arguments Value Examples

Description

Use readHTMLTable to covert the report of code coverage into a list of two data frames or matrices of percentages.

Usage

1

Arguments

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 readHTMLTable.

Value

A list of two data frames or matrices, the 1st is Package, 2nd is Class.

Examples

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

walterxie/ComMA documentation built on May 3, 2019, 11:51 p.m.