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
)

Arguments

pkg

a package tarball

out_dir

output directory for saving results and json

pkg_info

optional manually filled info

overwrite

Logical (T/F). Whether or not to overwrite existing scorecard results

rcmdcheck_args

list of arguments to pass to rcmdcheck. Note that the tarball path and error_on = "never" are automatically appended to this list.

covr_timeout

Timeout for covr run to finish. It may be any value accepted by callr::r_safe() and defaults to Inf (no timeout).

Value

a directory containing json file (contains all scores), and individual results