It is highly recommended that you answer the exam using Rmarkdown (you can simply use the exam Rmarkdown file as a starting point); see below.
If there is more than one exam exercise below, your teacher will instruct you about which you can choose.
This exam is available in the following formats: Rmarkdown, pdf.