29.1 Setting output type

There are two ways to set the output of a document:

  1. Modify the YAML header:
title: "Diamond sizes"
format: html
  1. Call quarto::quarto_render() by hand:
quarto::quarto_render("diamond-sizes.qmd", output_format = c("docx", "pdf"))

Note: You can produce multiple types of output since the output_format argument can take a list of values