Quarto Overview
This lesson is called Quarto Overview, part of the Fundamentals of R course. This lesson is called Quarto Overview, part of the Fundamentals of R course.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Loading transcript...
Your Turn
Copy the code below to create a new Quarto file, setting the author as your name, and the output format as Word.
Save your Quarto file as
penguins-report.qmd.Look through this Quarto file and make sure that you can identify the YAML, text sections, and code chunks.
Click the Render button and open the file that gets produced (
penguins-report.docx).
---
title: My Penguins Report
author: David Keyes
format: docx
---
```{r}
library(tidyverse)
penguins <- read_csv("penguins.csv")
```
# Introduction
This report is about **three** species of penguins
1. Adele
1. Gentoo
1. Chinstrap
You'll learn *so* much about the penguins. I hope you're ready!
# Results
Here is a chart showing the average bill length for penguins, grouped by island and sex.
```{r}
penguin_bill_length_by_island_and_sex <-
penguins |>
drop_na(sex) |>
group_by(island, sex) |>
summarize(mean_bill_length = mean(bill_length_mm))
ggplot(
data = penguin_bill_length_by_island_and_sex,
mapping = aes(
x = island,
y = mean_bill_length,
fill = sex
)
) +
geom_col(position = "dodge")
```
Learn More
The Quarto documentation website is a great place to start learning about Quarto. I also recommend the book, Quarto: The Practical Guide by Mine Çetinkaya-Rundel and Charlotte Wickham.
Have any questions? Put them below and we will help you out!
Course Content
33 Lessons
You need to be signed-in to comment on this post. Login.
Eda Akpek • March 30, 2026
I clicked the "Preview" button to render the document, and I got this error:
Quitting from penguins_report.qmd:11-15 [unnamed-chunk-1] Execution halted WARN: Error encountered when rendering files PS C:\Users\zlw9\Desktop\my-r-project_penguins>
Gracielle Higino Coach • March 30, 2026
Hi Eda! This error message indicates that there is something wrong with your first code chunk (
[unnamed-chunk-1]) on lines 11-15 (penguins_report.qmd:11-15). Maybe something related to the code to read in the data? Where is your Quarto document?Eda Akpek • March 30, 2026
I have my document saved in a Quarto folder within the project
Gracielle Higino Coach • March 30, 2026
Have you changed the directory execution option on the YAML and/or the file path to your dataset? Try moving your Quarto document to your root directory to see if it fixes the problem.
Eda Akpek • March 30, 2026
Yes, moving it out of the folder worked
Anna-Marie Panlilio • April 9, 2026
You have the execute options set in this code so we already see the preview with all the R code hidden before you talk about it in sections 4 & 5