with.pkg_ref {riskmetric} | R Documentation |
Evaluate an expression in the context of a pkg_ref
Description
pkg_ref
objects are environments and can be passed to with
in much the same way. This specialized function makes sure that any fields
within the pkg_ref
have been appropriately evaluated before trying
to execute the expression.
Usage
## S3 method for class 'pkg_ref'
with(data, expr, ...)
Arguments
data |
data to use for constructing an environment. For the
default |
expr |
expression to evaluate; particularly for { a <- somefun() b <- otherfun() ..... rm(unused1, temp) } |
... |
arguments to be passed to (future) methods. |
Value
the value of the evaluated expr.
[Package riskmetric version 0.2.4 Index]