What is Quarto?

STAT1003 – Statistical Techniques

Dr. Emi Tanaka

Australian National University

These slides are best viewed on a modern browser like Google Chrome on a desktop or laptop. Some interactive components may require some time to fully load.

Quarto in a nutshell

Quarto integrates text + code in one source document with ability to render to many output formats (via Pandoc), e.g. docx, pdf or html.

  • Note: Quarto is the next generation of R Markdown.

R Markdown

  • Quarto and R Markdown are very similar.
  • The same team that created R Markdown created Quarto.
  • Quarto supersedes R Markdown so we focus on Quarto.

R Markdown

Quarto

What can you do with Quarto?

There are so many possible output formats you can create with Quarto, including but not limited to:

  • Microsoft Word document (.doc, .docx)
  • PowerPoint presentation (.pptx)
  • Open Document Text (.odt)
  • Rich text format (.rtf)
  • e-book format (.epub)
  • Markdown documents (.md)
  • Dashboard (.html)
  • Books (.pdf or .html)
  • Webpage (.html)
  • Websites (collection of web pages)

Primary languages supported:

  • R
  • Python
  • Julia
  • Observable

But include engines for many more languages!

HTML slides


These HTML slides are made using Quarto.

Report



These dynamic reports are made using Quarto.

Thesis

This PhD thesis (online and pdf) is made using Quarto.
Available at https://thesis.patrickli.org/

Quarto basics

  • If you are not using RStudio Desktop, open with your own editor.

Render to a HTML document

  • If you are not using RStudio Desktop, open the terminal and run
quarto render /your/file/location/filename.qmd

Render to a PDF document

  • If you are not using RStudio Desktop, open the terminal and run
quarto render /your/file/location/filename.qmd

RStudio Desktop

How does it all work?

Quarto via knitr/jupyter: qmd md

Pandoc: md html, pdf, docx