proj_rmd_render: Render in new R session

View source: R/workflow.R

proj_rmd_renderR Documentation

Render in new R session

Description

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.

Usage

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

## Not run: 
  # not run because it depends on and creates side effects
  proj_rmd_render("00-input.Rmd")

## End(Not run)

ijlyttle/projthis documentation built on Aug. 18, 2022, 11:25 a.m.