A large-scale study on research code quality and execution

Ana Trisovic, Matthew K. Lau, Thomas Pasquier, Mercè Crosas
3/23/2021
cs.SEcs.DL

Official code: atrisovic/dataverse-r-study (18 stars, Jupyter Notebook, MIT, last commit 2023-04-19).

Abstract

This article presents a study on the quality and execution of research code from publicly-available replication datasets at the Harvard Dataverse repository. Research code is typically created by a group of scientists and published together with academic papers to facilitate research transparency and reproducibility.

Show full abstract

For this study, we define ten questions to address aspects impacting research reproducibility and reuse. First, we retrieve and analyze more than 2000 replication datasets with over 9000 unique R files published from 2010 to 2020. Second, we execute the code in a clean runtime environment to assess its ease of reuse. Common coding errors were identified, and some of them were solved with automatic code cleaning to aid code execution. We find that 74\% of R files crashed in the initial execution, while 56\% crashed when code cleaning was applied, showing that many errors can be prevented with good coding practices. We also analyze the replication datasets from journals' collections and discuss the impact of the journal policy strictness on the code re-execution rate. Finally, based on our results, we propose a set of recommendations for code dissemination aimed at researchers, journals, and repositories.

View on arXivView PDF

Code Implementations(1)

MIT

Data and code for a large-scale study on research code quality and execution at Harvard Dataverse.

182Jupyter Notebook, PythonMay 25, 20203 years agoMIT
code-qualitydocumentationr-languager-programmingreproducibility

Similar Papers

Cite this paper

@article{trisovic2021largescale,
  title  = {A large-scale study on research code quality and execution},
  author = {Ana Trisovic and Matthew K. Lau and Thomas Pasquier and Mercè Crosas},
  year   = {2021},
  eprint = {2103.12793},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2103.12793}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2103.12793.svg)](https://codeofpaper.com/paper/2103.12793)

Discussion