01 - Quarto Documents

Slides

View slides in full screen

Exercises

Exercise 1

  • Open 01-exercise.qmd and run the code chunks (in order).
  • Preview the file.
  • 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 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 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 typst. 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.