01 - Quarto Documents
Slides
Exercises
Exercise 1
- Open
01-exercise.qmdand run the code chunks (in order). - Preview the file.
- Add a
#| include: falsechunk option to the first cell. Preview the file and note the differences. - In the YAML, add an
authorfield and add your name. Preview the file. - Change
code-foldto 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 p-value:
```{r}
`r data_summary %>% slice_head(n = 1) %>% pull(p_value_os)`
`r data_summary %>% slice_head(n = 1) %>% pull(hr_os)`
```Exercise 2
- Add an
importantcallout box to “Key Findings at a Glance”:
::: {.callout-important}
_text here_
:::- Change the
formattorevealjs. Preview the document. - Change the
formattotypst. Preview the document.
Note
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.