Day 5 Literate Programming

An introduction to literate programming with Quarto.

Exercise length: 30–90 min.


Literate programming allows you combine code, output and commentary. This way, you can author reports, presentations, websites and more, all from within the same RStudio interface, using the same familiar markdown language.

Quarto is like R markdown, but with several improvements and simplifications. If you use RStudio, it also comes with a visual editor. In these exercises we are quickly going to explore the advantages Quarto offers.

5.1 Exercise 1

Download the QMD file and open it in RStudio. From there, the exercise is explained in the file itself.

5.2 Exercise 2

Download the QMD file and open it in RStudio. From there, the exercise is explained in the file itself.