Dynamic documents – exercises
Day 1, A
Using rmarkdown and quarto to create reproducible and dynamic documents for reporting statistical analyses
Learning objectives
In this lesson you will
- Learn how to set up a quarto or rmarkdown document
- Practice managing code chunks to get output to look the way you want
- Practice and get help with everything you learned in the course
Testing out Quarto
- If you can, download and install Quarto from here: https://quarto.org/docs/get-started/
- In Rstudio, click on “New” and then “Quarto document”. Give it a name, and choose an output format (the format that you will view the rendered document in).
- Add a title, insert a code chunk, and write some prose. Example: print out the first six rows of the palmerpenguins dataset.
- Click on “Render” and see what happens
- Experiment with changing the yaml header options, click on Render again and see what changes. Example, if you are using the html output format, try changing the theme.
- Experiment with changing one of the code chunks in the document, Re-render and see what changes.