pkg_metric_eval: Evaluate a metric

View source: R/pkg_metric.R

pkg_metric_evalR Documentation

Evaluate a metric

Description

Evalute code relevant to a metric, capturing the evaluated code as well as any messages, warnings or errors that are thrown in the process.

Usage

pkg_metric_eval(expr, ..., class = c(), env = parent.frame())

Arguments

expr

An expression to evaluate in order to calculate a pkg_metric

...

additional attributes to bind to the pkg_metric object

class

a subclass to differentiate the pkg_metric object

env

An environment in which expr is to be evaluated

Value

a pkg_metric object containing the result of expr


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