`r format(nrow(dat), big.mark = ",")`
01 - Quarto Documents
Slides
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 betrue
. 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:
f"{total_dams:,}"` `{python}
Exercise 2
- Add an
important
callout box to “Key Findings at a Glance”:
::: {.callout-important}
_text here_ :::
- Change the
format
torevealjs
. Preview the document. - Change the
format
topdf
. 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.