installExprFunction

0th

Percentile

Install an expression as a function

Installs an expression in the given environment as a function, and registers debug hooks so that breakpoints may be set in the function.

Usage
installExprFunction(expr, name, eval.env = parent.frame(2), quoted = FALSE,
  assign.env = parent.frame(1), label = as.character(sys.call(-1)[[1]]))
Details

This function can replace exprToFunction as follows: we may use func <- exprToFunction(expr) if we do not want the debug hooks, or installExprFunction(expr, "func") if we do. Both approaches create a function named func in the current environment.

See Also

Wraps exprToFunction; see that method's documentation for more documentation and examples.

Aliases
Documentation reproduced from package shiny, version 0.9.1, License: GPL-3

Community examples

Looks like there are no examples yet.