Assess a package for the presence of example or usage fields in function documentation

assess_has_examples(x, ...)

Arguments

x

a pkg_ref package reference object

...

additional arguments passed on to S3 methods, rarely used

Value

a pkg_metric containing an integer value indicating the proportion of discovered files with examples

Examples

if (FALSE) {
assess_has_examples(pkg_ref("riskmetric"))
}