+ - 0:00:00
Notes for current slide
Notes for next slide

Introduction to Quarto, the next generation of R Markdown

Dr. Priyanga D. Talagala

Research Lounge Meet, University of Moratuwa

18/10/2022

1 / 13

2 / 13

Quarto

  • Quarto is open source.
3 / 13

Quarto

  • Quarto is open source.

  • It’s not a language-specific library, but an external software application.

3 / 13

Quarto

  • Quarto is open source.

  • It’s not a language-specific library, but an external software application.

  • Use Quarto with R, Python, Julia, Javascript, and many other languages to create dynamic content

3 / 13

Why bother with Quarto?

  • Quarto is RStudio’s attempt to bring R Markdown to everyone!
4 / 13

Why bother with Quarto?

  • Quarto is RStudio’s attempt to bring R Markdown to everyone!

  • Unlike R Markdown, Quarto doesn’t require or depend on R.

4 / 13

Why bother with Quarto?

  • Quarto is RStudio’s attempt to bring R Markdown to everyone!

  • Unlike R Markdown, Quarto doesn’t require or depend on R.

  • The goal of Quarto is to make the process of creating and collaborating on scientific and technical documents dramatically better.

4 / 13

Why bother with Quarto?

  • Quarto is RStudio’s attempt to bring R Markdown to everyone!

  • Unlike R Markdown, Quarto doesn’t require or depend on R.

  • The goal of Quarto is to make the process of creating and collaborating on scientific and technical documents dramatically better.

  • If you use more than one language, or you are on a multi-language team, you will likely find Quarto’s native support for multiple languages appealing.

4 / 13

Why bother with Quarto?

  • Quarto combines the functionality of R Markdown, bookdown, distill, xaringan, etc. into a single consistent system with “batteries included” that reflects everything we’ve learned from R Markdown
5 / 13

Why bother with Quarto?

  • Quarto combines the functionality of R Markdown, bookdown, distill, xaringan, etc. into a single consistent system with “batteries included” that reflects everything we’ve learned from R Markdown

  • You can export Quarto documents in more than 40 different file formats including Word, OpenOffice, PowerPoint, ePub, Jira Wiki, Jupyter, Observable JS, complete websites, and ebooks. R Markdown can generate some of those, but not all.

5 / 13

Why bother with Quarto?

  • Quarto combines the functionality of R Markdown, bookdown, distill, xaringan, etc. into a single consistent system with “batteries included” that reflects everything we’ve learned from R Markdown

  • You can export Quarto documents in more than 40 different file formats including Word, OpenOffice, PowerPoint, ePub, Jira Wiki, Jupyter, Observable JS, complete websites, and ebooks. R Markdown can generate some of those, but not all.

  • Quarto was designed to be multilingual, beginning with R, Python, Javascript, and Julia, with the idea that it will work even for languages that don’t yet exist.

5 / 13

Getting started with Quarto

Step 1: Install Quarto

  • Because Quarto isn’t a language-specific library, you install it like any other stand-alone software.

  • You can find binary downloads for Windows, macOS, and Linux on Quarto’s “Get Started” page .

  • If you’re an R user and you have an up-to-date version of RStudio, Quarto should be included by default. You don’t need to install Quarto separately.

6 / 13

How to use RStudio with Quarto

  • If you know R Markdown, a Quarto document will look familiar.

  • You’ll edit code and markdown in RStudio just as you would with R Markdown, and preview the rendered document in the Viewer tab as you work.

7 / 13

Create a Quarto document file

File > New File > Quarto Document

8 / 13

Create a Quarto document file

9 / 13

One of the biggest differences between R Markdown and Quarto is how you set up options for code chunks.

R Markdown

  • Chunk-specific options are typically put within curly braces

Quarto

  • Chunk options start off with #| (“hash pipe”) and go below the curly braces for R, Python, or Julia.

10 / 13

Render the document

11 / 13

pridiltal and thiyangt

Acknowledgements:

This work was supported in part by RETINA research lab funded by the OWSD, a program unit of United Nations Educational, Scientific and Cultural Organization (UNESCO).

All rights reserved by Thiyanga S. Talagala and Priyanga D Talagala

13 / 13

2 / 13
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow