From 03363340d19509387ceae1944b94b11682cc3d48 Mon Sep 17 00:00:00 2001 From: Walmes Zeviani <walmes@ufpr.br> Date: Sat, 26 Sep 2015 14:16:31 -0300 Subject: [PATCH] Adds 'knitr::' prefix. --- R/runAllChunks.R | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/R/runAllChunks.R b/R/runAllChunks.R index be75bd0..f7b974a 100644 --- a/R/runAllChunks.R +++ b/R/runAllChunks.R @@ -3,13 +3,12 @@ #' @name runAllChunks #' #' @description This function was developed to run all chunks in a knitr -#' Rmd (R markdown) file at once. Mainly for exploring and debugging -#' purposes. +#' Rmd (R markdown) file at once. Mainly for exploring and debugging +#' purposes. #' #' @param Rmd the name of the Rmd file. -#' #' @param envir the environment in which the chunks will be -#' evaluated. By default it is the GlobalEnv. +#' evaluated. By default it is the GlobalEnv. #' #' @references This function was based on this #' \href{http://stackoverflow.com/questions/24753969/knitr-run-all-chunks-in-an-rmarkdown-document}{SO @@ -27,6 +26,6 @@ runAllChunks <- function(Rmd, envir = globalenv()){ } tempR <- tempfile(tmpdir = ".", fileext = ".R") on.exit(unlink(tempR)) - purl(Rmd, output = tempR) + knitr::purl(Rmd, output = tempR) sys.source(tempR, envir = envir) } -- GitLab