Mark an expression as a meta-expression
metaExpr(
expr,
env = parent.frame(),
quoted = FALSE,
localize = "auto",
bindToReturn = FALSE
)An expression (quoted or unquoted).
An environment.
Is the expression quoted? This is useful when you want to use an expression
that is stored in a variable; to do so, it must be quoted with quote().
Whether or not to wrap the returned expression in local().
The default, "auto", only wraps expressions with a top-level return()
statement (i.e., return statements in anonymized functions are ignored).
For non-localized expressions, should an assignment
of a meta expression be applied to the last child of the top-level \{ call?
If inside meta mode, a quoted form of expr for use inside of
metaReactive2(), metaObserve2(), or metaRender2(). Otherwise, in
normal execution, the result of evaluating expr.