Learn R Programming

riskmetric (version 0.2.5)

metric_score.pkg_metric_news_current: Score a package for NEWS files updated to current version

Description

Coerce a logical vector of discovered up-to-date NEWS to a metric score

Usage

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

Value

1 if any NEWS files are up-to-date, otherwise 0

Arguments

x

a pkg_metric_news_current packge metric object

...

additional arguments unused

Examples

Run this code
if (FALSE) metric_score(assess_news_current(pkg_ref("riskmetric")))

Run the code above in your browser using DataLab