diff --git a/R/runAllChunks.R b/R/runAllChunks.R
index be75bd0d1208274a2a6b7f048c40dfec2bdbf430..f7b974a910d2b6162bd167086cdab0e794c7eec1 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)
 }