output_format

0th

Percentile

Define an R Markdown output format

Define an R Markdown output format based on a combination of knitr and pandoc options.

Usage
output_format(knitr, pandoc, keep_md = FALSE, clean_supporting = TRUE,
  pre_processor = NULL, post_processor = NULL, base_format = NULL)
Arguments
knitr
Knitr options for an output format (see knitr_options)
pandoc
Pandoc options for an output format (see pandoc_options)
keep_md
Keep the markdown file generated by knitting. Note that if this is TRUE then clean_supporting will always be FALSE.
clean_supporting
Cleanup any supporting files after conversion see render_supporting_files
pre_processor
An optional pre-processor function that receives the metadata, input_file, runtime, knit_meta, and files_dir and can return additional arguments to pass to pandoc.
post_processor
An optional post-processor function that receives the metadata, input_file, output_file, clean, and verbose parmaeters, and can return an alternative output_file.
base_format
An optional format to extend.
Value

  • An R Markdown output format definition that can be passed to render.

See Also

render, knitr_options, pandoc_options

Aliases
  • output_format
Examples
output_format(knitr = knitr_options(opts_chunk = list(dev = 'png')),
              pandoc = pandoc_options(to = "html"))
Documentation reproduced from package rmarkdown, version 0.6.1, License: GPL-3

Community examples

Looks like there are no examples yet.