Debian Codegraph @

man/resolve_output_format.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/output_format.R
3 \name{resolve_output_format}
4 \alias{resolve_output_format}
5 \title{Resolve the output format for an R Markdown document}
6 \usage{
7 resolve_output_format(
8 input,
9 output_format = NULL,
10 output_options = NULL,
11 output_yaml = NULL
12 )
13 }
14 \arguments{
15 \item{input}{Input file (Rmd or plain markdown)}
16
17 \item{output_format}{Name of output format (or \code{NULL} to use
18 the default format for the input file).}
19
20 \item{output_options}{List of output options that should override the
21 options specified in metadata.}
22
23 \item{output_yaml}{Paths to YAML files specifying output formats and their
24 configurations. The first existing one is used. If none are found, then
25 the function searches YAML files specified to the \code{output_yaml} top-level
26 parameter in the YAML front matter, _output.yml or _output.yaml, and then uses
27 the first existing one.}
28 }
29 \value{
30 An R Markdown output format definition that can be passed to
31 \code{\link{render}}.
32 }
33 \description{
34 Read the YAML metadata (and any common output YAML file) for the
35 document and return an output format object that can be
36 passed to the \code{\link{render}} function.
37 }
38 \details{
39 This function is useful for front-end tools that need to modify
40 the default behavior of an output format.
41 }