mirror of
https://github.com/rstudio/shiny.git
synced 2026-01-10 23:48:01 -05:00
Co-authored-by: Barret Schloerke <schloerke@gmail.com> Co-authored-by: Winston Chang <winston@stdout.org> Co-authored-by: Carson Sievert <cpsievert1@gmail.com> Co-authored-by: Joe Cheng <joe@rstudio.com>
29 lines
1.2 KiB
R
29 lines
1.2 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/utils-lang.R
|
|
\name{exprToFunction}
|
|
\alias{exprToFunction}
|
|
\title{Convert an expression to a function}
|
|
\usage{
|
|
exprToFunction(expr, env = parent.frame(), quoted = FALSE)
|
|
}
|
|
\arguments{
|
|
\item{expr}{A quoted or unquoted expression, or a quosure.}
|
|
|
|
\item{env}{The desired environment for the function. Defaults to the
|
|
calling environment two steps back.}
|
|
|
|
\item{quoted}{Is the expression quoted?}
|
|
}
|
|
\description{
|
|
\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
|
|
debugging experience (Shiny 0.8.0). If the \code{expr} and \code{quoted} parameters are not needed, please see
|
|
\code{\link[=quoToFunction]{quoToFunction()}} (Shiny 1.6.0).
|
|
}
|
|
\details{
|
|
Similar to \code{\link[=installExprFunction]{installExprFunction()}} but doesn't register debug hooks.
|
|
}
|
|
\seealso{
|
|
\code{\link[=installExprFunction]{installExprFunction()}} for the modern approach to converting an expression to a function
|
|
}
|
|
\keyword{internal}
|