Learn R Programming

rmarkdown (version 0.1.2)

output_format: Define an R Markdown output format

Description

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

Usage

output_format(knitr, pandoc, clean_supporting = TRUE, format_filter = NULL,
  post_processor = NULL)

Arguments

knitr

Knitr options for an output format (see knitr_options)

pandoc

Pandoc options for an output format (see pandoc_options)

clean_supporting

Cleanup any supporting files after conversion see render_supporting_files

format_filter

An optional filter function that receives the output_format, files_dir, and input_lines. The filter can be called for it's side-effects (e.g. rendering supporting files to the files_dir) and can also return a modified format.

post_processor

An optional post-processor function that receives the input_file, output_file, and verbose parmaeters.

Value

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

See Also

render, knitr_options, pandoc_options

Examples

Run this code
# NOT RUN {
output_format(knitr = knitr_options(opts_chunk = list(dev = 'png')),
              pandoc = pandoc_options(to = "html"))
# }

Run the code above in your browser using DataLab