Debian Codegraph @

man/default_output_format.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/output_format.R
3 \name{default_output_format}
4 \alias{default_output_format}
5 \title{Determine the default output format for an R Markdown document}
6 \usage{
7 default_output_format(input, output_yaml = NULL)
8 }
9 \arguments{
10 \item{input}{Input file (Rmd or plain markdown)}
11
12 \item{output_yaml}{Paths to YAML files specifying output formats and their
13 configurations. The first existing one is used. If none are found, then
14 the function searches YAML files specified to the \code{output_yaml} top-level
15 parameter in the YAML front matter, _output.yml or _output.yaml, and then uses
16 the first existing one.}
17 }
18 \value{
19 A named list with a \code{name} value containing the format
20 name and an \code{options} value that is a list containing all the options
21 for the format and their values. An option's default value will be returned
22 if the option isn't set explicitly in the document.
23 }
24 \description{
25 Read the YAML metadata (and any common output YAML file) for the
26 document and return the output format that will be generated by
27 a call to \code{\link{render}}.
28 }
29 \details{
30 This function is useful for front-end tools that require additional
31 knowledge of the output to be produced by \code{\link{render}} (e.g. to
32 customize the preview experience).
33 }