Returns collected metrics as a named list, and also writes results to disk for downstream consumption.
score_pkg(
pkg,
out_dir,
pkg_info = NULL,
overwrite = FALSE,
rcmdcheck_args = list(timeout = Inf, args = "--no-manual", quiet = TRUE),
covr_timeout = Inf
)a package tarball
output directory for saving results and json
optional manually filled info
Logical (T/F). Whether or not to overwrite existing scorecard results
list of arguments to pass to rcmdcheck. Note that the tarball path and error_on = "never"
are automatically appended to this list.
Timeout for covr run to finish. It may be any value
accepted by callr::r_safe() and defaults to Inf (no timeout).
a directory containing json file (contains all scores), and individual results