From c96debadc5261087177cfc13eeb91a6967af7bdc Mon Sep 17 00:00:00 2001 From: Joe Cheng Date: Tue, 9 Feb 2016 12:03:13 -0800 Subject: [PATCH] Fix docs/check --- R/render-plot.R | 4 ++-- R/utils.R | 2 -- man/exprToFunction.Rd | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/R/render-plot.R b/R/render-plot.R index 1aaa55904..9db50b05c 100644 --- a/R/render-plot.R +++ b/R/render-plot.R @@ -39,11 +39,11 @@ #' instead). #' #' @export -renderPlot <- function(plotExpr, width='auto', height='auto', res=72, ..., +renderPlot <- function(expr, width='auto', height='auto', res=72, ..., env=parent.frame(), quoted=FALSE, func=NULL) { # This ..stacktraceon is matched by a ..stacktraceoff.. when plotFunc # is called - installExprFunction(plotExpr, "func", env, quoted, ..stacktraceon = TRUE) + installExprFunction(expr, "func", env, quoted, ..stacktraceon = TRUE) args <- list(...) diff --git a/R/utils.R b/R/utils.R index 18a86cb7a..0defa1c57 100644 --- a/R/utils.R +++ b/R/utils.R @@ -343,8 +343,6 @@ makeFunction <- function(args = pairlist(), body, env = parent.frame()) { #' @param env The desired environment for the function. Defaults to the #' calling environment two steps back. #' @param quoted Is the expression quoted? -#' @param caller_offset If specified, the offset in the callstack of the -#' functiont to be treated as the caller. #' #' @examples #' # Example of a new renderer, similar to renderText diff --git a/man/exprToFunction.Rd b/man/exprToFunction.Rd index 1a3ca3dc0..b82777f73 100644 --- a/man/exprToFunction.Rd +++ b/man/exprToFunction.Rd @@ -4,8 +4,7 @@ \alias{exprToFunction} \title{Convert an expression to a function} \usage{ -exprToFunction(expr, env = parent.frame(2), quoted = FALSE, - caller_offset = 1) +exprToFunction(expr, env = parent.frame(), quoted = FALSE) } \arguments{ \item{expr}{A quoted or unquoted expression, or a function.}