diff --git a/R/s3_drake_deps.R b/R/s3_drake_deps.R index 2e53a2d4c..99e6d4c53 100644 --- a/R/s3_drake_deps.R +++ b/R/s3_drake_deps.R @@ -47,9 +47,6 @@ drake_deps_impl <- function(expr, exclude = character(0), restrict = NULL) { #' @param file_in Literal static file paths enclosed in [file_in()]. #' @param file_out Literal static file paths enclosed in [file_out()]. #' @param knitr_in Literal static file paths enclosed in [knitr_in()]. -#' @param restrict Optional character vector of allowable names of globals. -#' If `NULL`, all global symbols are detectable. If a character vector, -#' only the variables in `restrict` will count as global variables. #' @examples #' if (FALSE) { # stronger than roxygen dontrun #' new_drake_deps() diff --git a/R/utils.R b/R/utils.R index 1b40c5e90..703ae322e 100644 --- a/R/utils.R +++ b/R/utils.R @@ -344,7 +344,7 @@ weak_tibble <- function(..., .force_df = FALSE) { #' @keywords internal #' @return Nothing. #' @param desc Character, description of the example. -#' @param ... Code to run. +#' @param code Code to run. isolate_example <- function(desc, code) { new <- tempfile() dir.create(new) diff --git a/man/isolate_example.Rd b/man/isolate_example.Rd index 832c2d7ee..e0b151523 100644 --- a/man/isolate_example.Rd +++ b/man/isolate_example.Rd @@ -10,7 +10,7 @@ isolate_example(desc, code) \arguments{ \item{desc}{Character, description of the example.} -\item{...}{Code to run.} +\item{code}{Code to run.} } \value{ Nothing. diff --git a/man/new_drake_deps.Rd b/man/new_drake_deps.Rd index 3db8661b9..688269f71 100644 --- a/man/new_drake_deps.Rd +++ b/man/new_drake_deps.Rd @@ -31,10 +31,6 @@ new_drake_deps( \item{file_out}{Literal static file paths enclosed in \code{\link[=file_out]{file_out()}}.} \item{knitr_in}{Literal static file paths enclosed in \code{\link[=knitr_in]{knitr_in()}}.} - -\item{restrict}{Optional character vector of allowable names of globals. -If \code{NULL}, all global symbols are detectable. If a character vector, -only the variables in \code{restrict} will count as global variables.} } \value{ A \code{drake_deps} object.