| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/utils-lang.R |
| 3 |
\name{exprToFunction} |
| 4 |
\alias{exprToFunction} |
| 5 |
\title{Convert an expression to a function} |
| 6 |
\usage{ |
| 7 |
exprToFunction(expr, env = parent.frame(), quoted = FALSE) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{expr}{A quoted or unquoted expression, or a quosure.} |
| 11 |
|
| 12 |
\item{env}{The desired environment for the function. Defaults to the |
| 13 |
calling environment two steps back.} |
| 14 |
|
| 15 |
\item{quoted}{Is the expression quoted?} |
| 16 |
} |
| 17 |
\description{ |
| 18 |
\ifelse{html}{\href{https://lifecycle.r-lib.org/articles/stages.html#superseded}{\figure{lifecycle-superseded.svg}{options: alt='[Superseded]'}}}{\strong{[Superseded]}} Please use \code{\link[=installExprFunction]{installExprFunction()}} for a better |
| 19 |
debugging experience (Shiny 0.8.0). If the \code{expr} and \code{quoted} parameters are not needed, please see |
| 20 |
\code{\link[=quoToFunction]{quoToFunction()}} (Shiny 1.6.0). |
| 21 |
} |
| 22 |
\details{ |
| 23 |
Similar to \code{\link[=installExprFunction]{installExprFunction()}} but doesn't register debug hooks. |
| 24 |
} |
| 25 |
\seealso{ |
| 26 |
\code{\link[=installExprFunction]{installExprFunction()}} for the modern approach to converting an expression to a function |
| 27 |
} |
| 28 |
\keyword{internal} |