Organise · Track · Record · Automate · Publish
What happens if one value changes at the very start?
Same data + same code → same result?
Not all-or-nothing. Every step helps:
Where is what? What does it mean? → Organise & document
What changed, when, and why? → Version control
Will it still run elsewhere? → Record the environment
What do I rerun, in which order? → Automate
Can others find, reuse and cite it? → Publish

Artwork by Allison Horst, CC-BY 4.0
Which file is the current one?
Which file is the current one?
Artwork by Allison Horst, CC-BY 4.0
How do you correct an error in raw data?
Correct in code, not in the file.
Would a new colleague understand your project?
Document at every level
| project | README |
| data | data dictionary |
| code | comments: why, not what |
| changes | commit messages |
Template & guide: makeareadme.com
Artwork by Allison Horst for Openscapes, CC-BY 4.0
What does x mean here, and what is NA?
| column | description | type | unit | allowed values | missing |
|---|---|---|---|---|---|
plot_id |
plot identifier | integer | – | unique | – |
x, y |
plot centre | number | m, EPSG:25832 | – | NA |
forest_type |
dominant tree species | text | – | beech, spruce, oak, pine | NA |
management |
management status | text | – | managed, unmanaged | NA |
A data dictionary answers questions before they are asked.
Does your code run on a colleague’s computer?
Artwork by Allison Horst, CC-BY 4.0
Does your code run on a colleague’s computer?

Artwork by Allison Horst, CC-BY 4.0
Which version did I send to the other subproject?
history · undo · compare · why
Artwork by Allison Horst for Openscapes, CC-BY 4.0
What changed, when, and why?
You decide when to save and what to say.
Artwork by Allison Horst for Openscapes, CC-BY 4.0
What changed, when, and why?
What changed, when, and why?
a3f9c21 · Jens · 2026-05-12 · Move plot 17: original site too steep
What if your laptop dies tomorrow?
git works locally, a remote is optional.


Artwork by Allison Horst (partly for Openscapes), CC-BY 4.0
How does a change get from my folder to GitHub?
In RStudio and VS Code these are buttons.
Do I need the command line?
VS Code, Source Control view:
RStudio: same in the Git pane.
Screenshot: VS Code docs, CC BY 3.0 US
Will your code still run next year?
Package versions change, and results with them.
renv::snapshot() writes the lock file, renv::restore() rebuilds itrenv.lock to gitWhich scripts do I need to rerun after a change?
Who knows the order of the steps?
Script list
run_all.R
You keep the order, everything reruns.
targets::tar_make() · same idea in other languages: Make, Snakemake
Do I have to rerun everything?
changed rerun up to date, skipped
How do figures and numbers get into your paper?
Copy & paste
Figures and numbers copied into Word. Works, but every change means updating each copy by hand.
One document
Text, code and results in one file:
report.qmd
We sampled `{r} n` plots.
```{r}
#| fig-cap: Plot locations
plot(plots$x, plots$y)
```Render → text, numbers and figures update together.

These slides are made this way too.
Artwork by Allison Horst, CC-BY 4.0
What makes data and code reusable?
| Findable | DOI, metadata | Zenodo record |
| Accessible | open, standard protocol | public repository |
| Interoperable | open formats, vocabularies | CSV, GeoPackage |
| Reusable | licence, documentation | README, data dictionary |
May others reuse your code and data?
No licence → unclear rights → no safe reuse. Help choosing: choosealicense.com
How do others cite your work?
v1.0)| resolves to | |
|---|---|
| version DOI | exactly this release |
| concept DOI | always the latest |
CITATION.cff → Cite this repository button on GitHub
This presentation on Zenodo · version DOI 10.5281/zenodo.24471760 · concept DOI 10.5281/zenodo.24471759
What does a reproducible project look like?
diversa-plots/
├── README.md ← organise
├── data-raw/ ← organise
├── R/ ← organise
├── .git/ ← track
├── renv.lock ← record
├── _targets.R ← automate
├── report.qmd ← automate
├── LICENSE ← publish
└── CITATION.cff ← publish → DOICode, data, environment and report in one citable package: a research compendium.
What happens if one value changes at the very start?
Where do I start?
| step | try this |
|---|---|
| 1 · Organise | write a README |
| 2 · Track | git init + a GitHub repository |
| 3 · Record | note your package versions |
| 4 · Automate | describe your steps as a pipeline |
| 5 · Publish | a release on Zenodo |
r-spatial/sf: simple features for R
