metric_score.pkg_metric_has_vignettes: Score a package for the presence of a Vignettes file

View source: R/assess_has_vignettes.R

metric_score.pkg_metric_has_vignettesR Documentation

Score a package for the presence of a Vignettes file

Description

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

Usage

## S3 method for class '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

## Not run: metric_score(assess_has_vignettes(pkg_ref("riskmetric")))


pharmaR/riskmetric documentation built on April 30, 2024, 5:14 p.m.