
reproducible research with Quarto
2025-08-09

Artwork from “Hello, Quarto” keynote by Julia Lowndes and Mine Çetinkaya-Rundel, presented at RStudio Conference 2022. Illustrated by Allison Horst.

Dynamic: code and text in same document
Reproducible: re-run your analysis, re-render your document
Flexible: output to different formats easily




*italic* **bold**
_italic_ __bold__
# Header 1
## Header 2
### Header 3
<http://example.com>
[linked phrase](http://example.com)
Learn more about Markdown Syntax with the ten-twenty minute tutorial on markdown at https://commonmark.org/help/tutorial.
exercises.qmd)



| Option | Effect |
|---|---|
include: false |
run the code but don’t print it or results |
eval: false |
don’t evaluate the code |
echo: false |
run the code and output but don’t print code |
message: false |
don’t print messages (e.g. from a function) |
warning: false |
don’t print warnings |
fig.cap: "Figure 1" |
caption output plot with “Figure 1” |
See the Quarto documentation
First-class support for Python, Julia, and Observable JS
Supports Jupyter notebooks
cmd/ctrl + alt/option + I or Visual Editor
tab to autocomplete chunk options

echo: false to the code chunk you created and re-render. What’s the difference in the output?

eval: false so that Quarto evaluates the code.summarize() and n_distinct() to get the the number of unique years in gapminder and save the results as n_years.| Format | Outputs |
|---|---|
html |
HTML |
pdf |
|
word |
Word .docx |
odt |
OpenOffice .odt |
gfm |
GitHub-flavored Markdown |
revealjs |
Reveal Slides (HTML) |
beamer |
Beamer Slides (PDF) |
pptx |
Powerpoint Slides |
dpi, fig.width, and fig.height. Run knitr::opts_chunk$get() in the console to see the defaults.author: Your Name.format: html to use the toc: true and code-fold: true options and re-renderparams option in the YAML header to use a different continent. Re-render.gapminder |>
filter(continent == params$continent) |>
ggplot(aes(x = year, y = lifeExp, group = country, color = country)) +
geom_line(lwd = 1, show.legend = FALSE) +
scale_color_manual(values = country_colors) +
theme_minimal(14) +
theme(strip.text = element_text(size = rel(1.1))) +
ggtitle(paste("Continent:", params$continent))Bibliography files: .bib, Zotero, others
Citation styles: .csl
[@citation-label]
Visual Editor’s citation wizard can help!
the Visual Editor can also manage this for you.
aje.cslSee the Gallery for inspiration