When no object is passed, returns a list of possible metrics. When a pkg
object is provided, return metrics calculated for that package. Metrics are
a subset of all the data calculated over the course of assessing a package.
For access to all the internally calculated data, pass all = TRUE
.
Usage
metrics(x, ..., all = FALSE)
Arguments
- x
Optionally, an object to retrieve metrics from. When NULL
(the
default), a listing of metric metadata is returned.
- ...
Additional arguments unused.
- all
If TRUE
, include non-metric package data. These are often
intermediate data used in the calculation of package metrics.
Value
A list
of calculated values or metadata, in the cases where an
object is or is not provided respectively.
Metrics
The following metrics are provided by val.meter
.
R CMD check Error Count
<integer>
the number of errors produced when running R CMD check
![[execution]](figures/badge-execution-x-flat-square-blue.svg)
Total Downloads
<integer>
total number of lifetime downloads, as reported by the Posit CRAN mirror through the cranlogs API
![[network]](figures/badge-req-network-x-flat-square-red.svg)
![[version-independent]](figures/badge-version--independent-x-flat-square-blue.svg)
Dependency Count
<integer>
the number of required dependencies
![[best practice]](figures/badge-best_practice-x-flat-square-blue.svg)