Skip to content
Snippets Groups Projects
Commit 03363340 authored by Walmes Marques Zeviani's avatar Walmes Marques Zeviani
Browse files

Adds 'knitr::' prefix.

parent a1e08d04
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,6 @@
#' 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.
#'
......@@ -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)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment