metric_score.pkg_metric_has_source_control: Score a package for inclusion of an associated source control...

View source: R/assess_has_source_control.R

metric_score.pkg_metric_has_source_controlR Documentation

Score a package for inclusion of an associated source control url

Description

Coerce a list of source control urls into a numeric value indicating whether the number of listed urls is greater than 0.

Usage

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

Arguments

x

a pkg_metric_has_source_control packge metric object

...

additional arguments unused

Value

1 if any source control url is provided, otherwise 0

Examples

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


riskmetric documentation built on Sept. 1, 2023, 1:06 a.m.