Learn R Programming

covr (version 4.0.0)

coverage_to_list: Convert a coverage dataset to a list

Description

Convert a coverage dataset to a list

Usage

coverage_to_list(x = package_coverage())

Value

A list with two components: filecoverage, a named numeric vector with the percentage of lines covered in each file, and totalcoverage, the percentage of lines covered in the whole package. Both are rounded to two decimal places.

Arguments

x

a coverage dataset, defaults to running package_coverage().