Skip to contents

Coerce a logical vector indicating availability of example or usage documentation

Usage

# S3 method for class 'pkg_metric_has_examples'
metric_score(x, ...)

Arguments

x

a pkg_metric_has_examples packge metric object

...

additional arguments unused

Value

1 if any example or usage fields are found, otherwise 0

Examples

if (FALSE) metric_score(assess_has_examples(pkg_ref("riskmetric")))
 # \dontrun{}