Coerce the number of vignettes files to binary indication of valid Vignettes

# S3 method for pkg_metric_has_vignettes
metric_score(x, ...)

Arguments

x

a pkg_metric_has_vignettes packge metric object

...

additional arguments unused

Value

1 if any Vignettes files are found, otherwise 0

Examples

if (FALSE) metric_score(assess_has_vignettes(pkg_ref("riskmetric")))