The goal of this function is to mimic the behavior of the "knit" button in the RStudio IDE - it will start a new R session in which the .Rmd file is rendered, using rmarkdown::render(). By starting a new session, we avoid package namespaces from being attached from previous renderings.

proj_rmd_render(input, ...)

Arguments

input

character, path to the file to be rendered.

...

other args passed to rmarkdown::render().

Value

Invisible NULL, called for side effects.

Examples

if (FALSE) {
  # not run because it depends on and creates side effects
  proj_rmd_render("00-input.Rmd")
}