00 - Welcome and Introduction

Slides

View slides in full screen

Set Up Instructions

To follow along with the workshop exercises, you’ll need Quarto version 1.7+ and access to a code editor that supports R or Python.

While Quarto itself doesn’t require a programming language, the exercises will include code chunks in R or Python. If you don’t already have R or Python set up locally, I recommend using a cloud-based option like Posit Cloud (for R) or GitHub Codespaces (for Python). I will delete the Posit Cloud project in a few days, so please make a copy of your materials if you would like to keep them.

Accessing the Workshop Materials

If you are using a cloud-based option, the files will be included in the project folder.

If you are not using a cloud-based option:

If you use Git/GitHub:

  • Clone the repository with Git:
git clone https://github.com/ivelasq/gasp2025-quarto-exercises.git

If you don’t use Git/GitHub:

Install the Necessary Packages

If you are using Posit Cloud, the packages will be pre-installed.

install.packages("pak")
pak::pak(c("dplyr", "ggplot2", "here", "janitor", "knitr", "readr", "scales"))
  • Create your virtual environment by selecting Python: Create Environment in the Command Palette
  • Select your environment type (recommend Venv)
  • Choose an interpreter path
  • Select requirements.txt check box to install dependencies

Exercise 1

  • Open the 01-exercise-py.qmd or 01-exercise-r.qmd file.
  • Preview/render the document.
    • Posit Cloud: You may be asked to allow pop-ups.
  • Edit the title and preview/render again.

More Information

Why is it called Quarto?

According to the website, the developers wanted to use a name that had meaning in the history of publishing and ultimately landed on Quarto. A quarto is an 8-page double-sided booklet, made by folding a single sheet of paper into four sections.

Quarto is the format of a book or pamphlet produced from full sheets printed with eight pages of text, four to a side, then folded twice to produce four leaves.

— Wikipedia