01 - Quarto Documents

Slides

View slides in full screen

Exercises

Exercise 1

  • Open 01-exercise-r.qmd and preview the file:
    • In RStudio, click the Render button.
    • In Positron or VS Code, click the “Preview” button or press Command + Shift + P.
  • Add a #| include: false chunk option to the first cell. Preview the file and note the differences.
  • In the YAML, add an author field and add your name. Preview the file.
  • Change code-fold to be true. Preview the file.
  • Edit the first paragraph to (1) make something bold by surrounding the text with ** and (2) use inline code instead of hardcoded values for the number of dams:
`r format(nrow(dat), big.mark = ",")`
`{python} f"{total_dams:,}"`

Exercise 2

  • Add an important callout box to “Key Findings at a Glance”:
::: {.callout-important}
_text here_
:::
  • Change the format to revealjs. Preview the document.
  • Change the format to pdf. Preview the document.
Tip

Removing code-fold, code-summary, and embed-resources is not required because these are html only features. However, I’d recommend removing them to keep your document tidy.