R/output_format.R
resolve_output_format.Rd
Read the YAML metadata (and any common output YAML file) for the
document and return an output format object that can be
passed to the render
function.
resolve_output_format( input, output_format = NULL, output_options = NULL, output_yaml = NULL )
input | Input file (Rmd or plain markdown) |
---|---|
output_format | Name of output format (or |
output_options | List of output options that should override the options specified in metadata. |
output_yaml | Paths to YAML files specifying output formats and their
configurations. The first existing one is used. If none are found, then
the function searches YAML files specified to the |
An R Markdown output format definition that can be passed to
render
.
This function is useful for front-end tools that need to modify the default behavior of an output format.