2026-05-06
Prepare data (spreadsheet)
Analyse data (R)
Write report/paper (Word)
However, this workflow can unchain a maelstrom of email attachments …
How did you get these values? What analysis is behind this figure? Did you account for …?
What dataset was used? Which individuals were left out? Where is the clean dataset?
Oops, there is an error in the data. Can you repeat the analysis? And update figures/tables in Word!
The majority of replication problems emerge because authors either modified their code but failed to update their manuscript or made an error while transcribing their results into their paper - Eubank 2006
You can find difficulties when resuming your own work and you can struggle to reproduce your own results from a few weeks/months/years ago…
Also, revising non-reproducible manuscripts can be very messy
Quarto connects code with results
Quarto connects code with results
A YAML header: Defines document-wide options. Specifies the output format. Can include several parameters.
Markdown text: Freely add and format text using markdown.
Code chunks: Evaluate code and show its output. Specify global and/or local chunk options (e.g. figure dimensions). Also works with other languages (e.g. Python).
Fully reproducible (trace all results including tables and plots)
Dynamic (can be regenerated with 1 click)
Multiple outputs:
Chunks can execute code from different languages
Not only R, but also:
…etc
Chunk options are embbeded with #|
Can help debugging and navigating long docs
Markdown syntaxis
# Header
## Subheader
*italic*
**bold**
[a link](https://example.com)
Can use Visual Markdown Editor
With just one click (Render):
Try visual editor
Parameterised reports
Add bibliography