R/render.R

Defines functions render_keep

Documented in render_keep

#' Render with Rmarkdown and keep intermediate files
#' 
#' Following https://github.com/rstudio/rmarkdown/issues/17 
#' add the YAML: \code{knit: spida2::render_keep} to a .R Rmarkdown 
#' document with output YAML \code{output: html_document}.
#' 
#' @param input file to be rendered
#' @param ... other arguments passed to \code{\link{rmarkdown::render}}.
#' @export
render_keep <- function(input, ...) {
  rmarkdown::render(input, clean = FALSE, envir = new.env(), ...)
}
gmonette/spida2 documentation built on Aug. 20, 2023, 7:21 p.m.