Render an R Markdown document with colored text
knit_with_colored_text.Rd
This function is a wrapper around rmarkdown::render()
which supplies a
custom Lua Pandoc filter to color text.
Arguments
- input
The input file to be rendered.
- ...
Additional arguments passed on to
rmarkdown::render()
.
Value
As for rmarkdown::render()
, when run_pandoc = TRUE
, the compiled
document is written into the output file, and the path of the output file
is returned. When run_pandoc = FALSE
, the path of the Markdown output
file, with attributes knit_meta
(the knitr meta data collected from code
chunks) and intermediates
(the intermediate files/directories generated
by rmarkdown::render()
).