mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
Remove env and quoted arguments
This commit is contained in:
@@ -289,12 +289,12 @@ renderCachedPlot <- function(expr,
|
||||
res = 72,
|
||||
cache = "app",
|
||||
...,
|
||||
env = parent.frame(), quoted = FALSE, outputArgs = list()
|
||||
outputArgs = list()
|
||||
) {
|
||||
|
||||
# This ..stacktraceon is matched by a ..stacktraceoff.. when plotFunc
|
||||
# is called
|
||||
installExprFunction(expr, "func", env, quoted, ..stacktraceon = TRUE)
|
||||
installExprFunction(expr, "func", parent.frame(), quoted = FALSE, ..stacktraceon = TRUE)
|
||||
# This is so that the expr doesn't re-execute by itself; it needs to be
|
||||
# triggered by the cache key (or width/height) changing.
|
||||
isolatedFunc <- function() isolate(func())
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
\usage{
|
||||
renderCachedPlot(expr, cacheKeyExpr, sizePolicy = sizeGrowthRatio(width = 400,
|
||||
height = 400, growthRate = 1.2), res = 72, cache = "app", ...,
|
||||
env = parent.frame(), quoted = FALSE, outputArgs = list())
|
||||
outputArgs = list())
|
||||
}
|
||||
\arguments{
|
||||
\item{expr}{An expression that generates a plot.}
|
||||
@@ -32,11 +32,6 @@ information.}
|
||||
\item{...}{Arguments to be passed through to \code{\link[grDevices]{png}}.
|
||||
These can be used to set the width, height, background color, etc.}
|
||||
|
||||
\item{env}{The environment in which to evaluate \code{expr}.}
|
||||
|
||||
\item{quoted}{Is \code{expr} a quoted expression (with \code{quote()})? This
|
||||
is useful if you want to save an expression in a variable.}
|
||||
|
||||
\item{outputArgs}{A list of arguments to be passed through to the implicit
|
||||
call to \code{\link{plotOutput}} when \code{renderPlot} is used in an
|
||||
interactive R Markdown document.}
|
||||
|
||||
Reference in New Issue
Block a user