This work was completed with the following R packages: datawizard v. 0.12.3 (Patil et al., 2022), grateful v. 0.2.4 (Francisco Rodriguez-Sanchez & Connor P. Jackson, 2023), palmerpenguins v. 0.1.1 (Horst et al., 2020), renv v. 1.0.7 (Ushey & Wickham, 2024), rmarkdown v. 2.28 (Allaire et al., 2024; Xie et al., 2018, 2020), sessioninfo v. 1.2.2 (Wickham et al., 2021), withr v. 3.0.1 (Hester et al., 2024).
About
This tutorial was created by Florian Kohrt. It is based on previous work by Josephine Zerna and Christoph Scheffel. Comments on earlier versions were kindly provided by Malika Ihle, Florian Pargent, Jonas Hagenberg, Felix Schönbrodt, and Sarah von Grebmer zu Wolfsthurn.
Utilized Software
Quarto 1.8.25 was utilized to render the files.
sessioninfo::session_info()─ Session info ───────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.5.1 (2025-06-13)
 os       Ubuntu 24.04.3 LTS
 system   x86_64, linux-gnu
 ui       X11
 language (EN)
 collate  C.UTF-8
 ctype    C.UTF-8
 tz       UTC
 date     2025-10-08
 pandoc   3.6.3 @ /opt/quarto/bin/tools/ (via rmarkdown)
─ Packages ───────────────────────────────────────────────────────────────────
 ! package     * version date (UTC) lib source
 P cli           3.6.3   2024-06-21 [?] RSPM (R 4.5.0)
 P digest        0.6.37  2024-08-19 [?] RSPM (R 4.5.0)
 P evaluate      1.0.4   2025-06-18 [?] RSPM (R 4.5.0)
 P fastmap       1.2.0   2024-05-15 [?] RSPM (R 4.5.0)
 P grateful      0.2.4   2023-10-22 [?] RSPM (R 4.5.1)
 P htmltools     0.5.8.1 2024-04-04 [?] RSPM (R 4.5.0)
 P jsonlite      1.8.8   2023-12-04 [?] RSPM (R 4.5.0)
 P knitr         1.48    2024-07-07 [?] RSPM (R 4.5.0)
   renv          1.0.7   2024-04-11 [1] RSPM (R 4.5.1)
 P rlang         1.1.4   2024-06-04 [?] RSPM (R 4.5.0)
 P rmarkdown     2.28    2024-08-17 [?] RSPM (R 4.5.0)
 P sessioninfo   1.2.2   2021-12-06 [?] RSPM (R 4.5.0)
 P withr         3.0.1   2024-07-31 [?] RSPM (R 4.5.0)
 P xfun          0.47    2024-08-17 [?] RSPM (R 4.5.0)
 P yaml          2.3.10  2024-07-26 [?] RSPM (R 4.5.0)
 [1] /home/runner/work/code-publishing/code-publishing/renv/library/linux-ubuntu-noble/R-4.5/x86_64-pc-linux-gnu
 [2] /home/runner/.cache/R/renv/sandbox/linux-ubuntu-noble/R-4.5/x86_64-pc-linux-gnu/179fe56a
 P ── Loaded and on-disk path mismatch.
──────────────────────────────────────────────────────────────────────────────License and Disclaimer
None of the discussion in this tutorial constitutes legal advice.
Except where noted otherwise, the narrative text in this tutorial is licensed under CC BY-SA 4.0; the code without any narrative text is also (at your option) available under CC0 1.0.
The files Manuscript.qmd and Bibliography.bib are made available by Josephine Zerna and Christoph Scheffel under CC0 1.0.
The screenshots of the RStudio IDE are Copyright (C) 2024 Posit PBC and are available under the GNU Affero General Public License v3. The source code is available on GitHub.
Funding

This work was partly funded by the Berkeley Initiative for Transparency in the Social Sciences (BITSS), managed by the Center for Effective Global Action (CEGA).
References
Citation
@book{kohrt2025,
  author = {Kohrt, Florian and Zerna, Josephine and Scheffel, Christoph},
  publisher = {LMU Open Science Center},
  title = {Code {Publishing} {Tutorial}},
  date = {2025-07-31},
  url = {https://lmu-osc.github.io/code-publishing/},
  doi = {10.5281/zenodo.16631977},
  langid = {en-US}
}
