clean_render: Clean Rendering of Embedded RMarkdown Documents

Description Usage Arguments

View source: R/clean_render.R

Description

clean_render is a utility function for knitting embedded R Markdown documents. This circumvents the write access error that typically occurs if you call 'rmarkdown::render()' from within an Rmarkdown document by opening a new instance of R to render the sub-document, rendering it, and then deleting the temporary file.

Usage

1
clean_render(toRender = NULL, outDir = NULL, extension = ".pdf")

Arguments

toRender

A string pertaining to the Rmd file to be rendered (no extension)

outDir

The directory rendered reports should be saved to

extension

A string pertaining to the extension to use for the knit report, default is .pdf.


mattsigal/mmisc documentation built on May 21, 2019, 1:26 p.m.