About

Authors

Florian Kohrt

Josephine Zerna

Christoph Scheffel

Felix SchΓΆnbrodt


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. Felix SchΓΆnbrodt created this short version of the longer original tutorial.

Utilized Software

This work was completed with the following R packages: datawizard v. 1.2.0 (Patil et al., 2022), grateful v. 0.2.12 (Rodriguez-Sanchez & Jackson, 2024), palmerpenguins v. 0.1.1 (Horst et al., 2020), quarto v. 1.4.4 (Allaire & Dervieux, 2024), renv v. 1.1.4 (Ushey & Wickham, 2025), rmarkdown v. 2.29 (Allaire et al., 2024; Xie et al., 2018, 2020), sessioninfo v. 1.2.3 (Wickham et al., 2025), withr v. 3.0.2 (Hester et al., 2024).

Quarto 1.7.32 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.2 LTS
 system   x86_64, linux-gnu
 ui       X11
 language (EN)
 collate  C.UTF-8
 ctype    C.UTF-8
 tz       UTC
 date     2025-07-20
 pandoc   3.6.3 @ /opt/quarto/bin/tools/ (via rmarkdown)
 quarto   1.7.32 @ /usr/local/bin/quarto

─ Packages ───────────────────────────────────────────────────────────────────
 ! package     * version date (UTC) lib source
 P cli           3.6.5   2025-04-23 [?] CRAN (R 4.5.1)
 P digest        0.6.37  2024-08-19 [?] CRAN (R 4.5.1)
 P evaluate      1.0.4   2025-06-18 [?] CRAN (R 4.5.1)
 P fastmap       1.2.0   2024-05-15 [?] CRAN (R 4.5.1)
 P grateful      0.2.12  2025-04-30 [?] CRAN (R 4.5.1)
 P htmltools     0.5.8.1 2024-04-04 [?] CRAN (R 4.5.1)
 P jsonlite      2.0.0   2025-03-27 [?] CRAN (R 4.5.1)
 P knitr         1.50    2025-03-16 [?] CRAN (R 4.5.1)
 P later         1.4.2   2025-04-08 [?] CRAN (R 4.5.1)
 P processx      3.8.6   2025-02-21 [?] CRAN (R 4.5.1)
 P ps            1.9.1   2025-04-12 [?] CRAN (R 4.5.1)
 P quarto      * 1.4.4   2024-07-20 [?] CRAN (R 4.5.1)
 P Rcpp          1.1.0   2025-07-02 [?] CRAN (R 4.5.1)
 P renv          1.1.4   2025-03-20 [?] CRAN (R 4.5.1)
 P rlang         1.1.6   2025-04-11 [?] CRAN (R 4.5.1)
 P rmarkdown     2.29    2024-11-04 [?] CRAN (R 4.5.1)
 P rstudioapi    0.17.1  2024-10-22 [?] CRAN (R 4.5.1)
 P sessioninfo   1.2.3   2025-02-05 [?] CRAN (R 4.5.1)
 P withr         3.0.2   2024-10-28 [?] CRAN (R 4.5.1)
 P xfun          0.52    2025-04-02 [?] CRAN (R 4.5.1)
 P yaml          2.3.10  2024-07-26 [?] CRAN (R 4.5.1)

 [1] /home/runner/work/code-publishing-short/code-publishing-short/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

 * ── Packages attached to the search path.
 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

Allaire, J., & Dervieux, C. (2024). quarto: R interface to β€œQuarto” markdown publishing system. https://doi.org/10.32614/CRAN.package.quarto
Allaire, J., Xie, Y., Dervieux, C., McPherson, J., Luraschi, J., Ushey, K., Atkins, A., Wickham, H., Cheng, J., Chang, W., & Iannone, R. (2024). rmarkdown: Dynamic documents for r. https://github.com/rstudio/rmarkdown
Hester, J., Henry, L., MΓΌller, K., Ushey, K., Wickham, H., & Chang, W. (2024). withr: Run code β€œWith” temporarily modified global state. https://doi.org/10.32614/CRAN.package.withr
Horst, A. M., Hill, A. P., & Gorman, K. B. (2020). palmerpenguins: Palmer archipelago (antarctica) penguin data. https://doi.org/10.5281/zenodo.3960218
Patil, I., Makowski, D., Ben-Shachar, M. S., Wiernik, B. M., Bacher, E., & LΓΌdecke, D. (2022). datawizard: An R package for easy data preparation and statistical transformations. Journal of Open Source Software, 7(78), 4684. https://doi.org/10.21105/joss.04684
Rodriguez-Sanchez, F., & Jackson, C. P. (2024). grateful: Facilitate citation of R packages. https://pakillo.github.io/grateful/
Ushey, K., & Wickham, H. (2025). renv: Project environments. https://doi.org/10.32614/CRAN.package.renv
Wickham, H., Chang, W., Flight, R., MΓΌller, K., & Hester, J. (2025). sessioninfo: R session information. https://doi.org/10.32614/CRAN.package.sessioninfo
Xie, Y., Allaire, J. J., & Grolemund, G. (2018). R markdown: The definitive guide. Chapman; Hall/CRC. https://bookdown.org/yihui/rmarkdown
Xie, Y., Dervieux, C., & Riederer, E. (2020). R markdown cookbook. Chapman; Hall/CRC. https://bookdown.org/yihui/rmarkdown-cookbook