render_doc: Render Document

Description Usage Arguments Examples

View source: R/render_doc.R

Description

Calls rmarkdown::render() to produce the output of a given rmd file

Usage

1
render_doc(file, rmd_dir = "rmd", output_dir = "docs", ...)

Arguments

file

A character vector specifying the file name

rmd_dir

The directory where the file lives, specified as a character vector

output_dir

The output directory, where the knitted versions will be placed

...

Other arguments passed to rmarkdown::render

Examples

1
2
3
4
5
#I have a file called \code{"manuscript.rmd"} that lives in my \code{"repo/rmd/"} directory.
## Not run: 
render_doc(file = "manuscript.rmd")

## End(Not run)

jcvdav/startR documentation built on Oct. 13, 2021, 2:40 a.m.