metric_score.pkg_metric_has_examples: Score a package for the presence of a example or usage fields

View source: R/assess_has_examples.R

metric_score.pkg_metric_has_examplesR Documentation

Score a package for the presence of a example or usage fields

Description

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

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


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