Read the YAML metadata (and any common _output.yml file) for the
document and return the output formats that will be generated by
a call to render
.
all_output_formats(input, encoding = getOption("encoding"))
Input file (Rmd or plain markdown)
The encoding of the input file; see file
.
A character vector with the names of all output formats.
This function is useful for front-end tools that require additional
knowledge of the output to be produced by render
(e.g. to
customize the preview experience).