View source: R/assess_r_cmd_check.R
metric_score.pkg_metric_r_cmd_check | R Documentation |
The scoring function is the weighted sum of notes (0.1), errors (1) and warnings (0.25), with a maximum score of 1 (no errors, notes or warnings) and a minimum score of 0. Essentially, the metric will allow up to 10 notes, 1 error or 4 warnings before returning the lowest score of 0
## S3 method for class 'pkg_metric_r_cmd_check'
metric_score(x, ...)
x |
a |
... |
additional arguments unused |
A weighted sum of errors and warnings of all tests preformed
## Not run: metric_score(assess_r_cmd_check(pkg_ref("riskmetric")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.