metric_score.pkg_metric_has_website: Score a package for inclusion of an associated website url

View source: R/assess_has_website.R

metric_score.pkg_metric_has_websiteR Documentation

Score a package for inclusion of an associated website url

Description

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

Usage

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

Arguments

x

a pkg_metric_has_website packge metric object

...

additional arguments unused

Value

1 if any website url is provided, otherwise 0

Examples

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


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