R/source.rmd.R

Defines functions source.rmd

Documented in source.rmd

#' Render Rmd in script
#'
#' @param file file name
#' @param ... optional arguments passed on to source
#'
#' @export
#'
source.rmd <- function(file, ...) {
  library(knitr)
  source(purl(file, output = tempfile()), ...)
  print("Done")
}
mottensmann/DBChecks documentation built on Feb. 3, 2022, 9:21 p.m.