Skip to contents

Here it means that it evaluates to a variable or a number.

Usage

rxUdfUiExpr(expr, env = parent.frame())

Arguments

expr

the R language expression to evaluate

env

the environment in which to evaluate the expression

Value

expression

Author

Matthew L. Fidler

Examples

# in a rxUdfUi handler, collapse arguments that evaluate to a value
rxUdfUiExpr(quote(2 * 3))
#> [1] 6
n <- "cp"
rxUdfUiExpr(quote(n)) # a character value becomes the variable cp
#> cp
rxUdfUiExpr(quote(ka * depot)) # unevaluable expressions are kept
#> ka * depot