metric_score.pkg_metric_exported_namespace {riskmetric} | R Documentation |
Score a package for the number of exported objects
Description
Score a package for the number of exported objects it has; regularized
Convert the number of exported objects length(x)
into a validation
score [0,1]
Usage
## S3 method for class 'pkg_metric_exported_namespace'
metric_score(x, ...)
Arguments
x |
a |
... |
additional arguments unused |
Details
The scoring function is the classic logistic curve
with a square root scale for the number of exported objects
, sigmoid midpoint is 25 exported objects, ie.
, and logistic growth rate of
.
Value
numeric value between 0
(high number of exported objects) and
1
(low number of exported objects)
Examples
## Not run: metric_score(assess_exported_namespace(pkg_ref("riskmetric")))
[Package riskmetric version 0.2.4 Index]