pkg_score | R Documentation |
pkg_score() calculates the risk involved with using a package. Risk ranges from 0 (low-risk) to 1 (high-risk).
pkg_score(x, ..., error_handler = score_error_default)
x |
A |
... |
Additional arguments passed to |
error_handler |
Specify a function to be called if the class can't be
identified. Most commonly this occurs for |
A numeric value if a single pkg_metric
is provided, or a
tibble
with pkg_metric
objects scored and
returned as numeric values when a tibble
is provided.
score_error_default score_error_zero score_error_NA
## Not run:
# scoring a single assessment
metric_score(assess_has_news(pkg_ref("riskmetric")))
# scoring many assessments as a tibble
library(dplyr)
pkg_score(pkg_assess(as_tibble(pkg_ref(c("riskmetric", "riskmetric")))))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.