View source: R/output_format.R
output_format | R Documentation |
Define an R Markdown output format based on a combination of knitr and pandoc options.
output_format(
knitr,
pandoc,
keep_md = FALSE,
clean_supporting = TRUE,
df_print = NULL,
pre_knit = NULL,
post_knit = NULL,
pre_processor = NULL,
intermediates_generator = NULL,
post_processor = NULL,
on_exit = NULL,
file_scope = NULL,
base_format = NULL
)
knitr |
Knitr options for an output format (see
|
pandoc |
Pandoc options for an output format (see
|
keep_md |
Keep the markdown file generated by knitting. Note that if
this is |
clean_supporting |
Cleanup any supporting files after conversion see
|
df_print |
Method to be used for printing data frames. Valid values
include "default", "kable", "tibble", and "paged". The "default" method
uses a corresponding S3 method of |
pre_knit |
An optional function that runs before knitting which receives
the |
post_knit |
An optional function that runs after knitting which receives
the |
pre_processor |
An optional pre-processor function that receives the
|
intermediates_generator |
An optional function that receives the
original |
post_processor |
An optional post-processor function that receives the
|
on_exit |
A function to call when |
file_scope |
A function that will split markdown input to pandoc into
multiple named files. This is useful when the caller has concatenated a set
of Rmd files together (as bookdown does), and those files may need to
processed by pandoc using the |
base_format |
An optional format to extend. |
An R Markdown output format definition that can be passed to
render
.
render, knitr_options, pandoc_options
## Not run:
output_format(knitr = knitr_options(opts_chunk = list(dev = 'png')),
pandoc = pandoc_options(to = "html"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.