| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/output_format.R |
| 3 |
\name{all_output_formats} |
| 4 |
\alias{all_output_formats} |
| 5 |
\title{Determine all output formats for an R Markdown document} |
| 6 |
\usage{ |
| 7 |
all_output_formats(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 character vector with the names of all output formats. |
| 20 |
} |
| 21 |
\description{ |
| 22 |
Read the YAML metadata (and any common output YAML file) for the |
| 23 |
document and return the output formats that will be generated by |
| 24 |
a call to \code{\link{render}}. |
| 25 |
} |
| 26 |
\details{ |
| 27 |
This function is useful for front-end tools that require additional |
| 28 |
knowledge of the output to be produced by \code{\link{render}} (e.g. to |
| 29 |
customize the preview experience). |
| 30 |
} |