A large-scale study on research code quality and execution

03/23/2021
by   Ana Trisovic, et al.
0

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. 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.

READ FULL TEXT

page 14

page 16

page 18

research
09/21/2021

Toward Reusable Science with Readable Code and Reproducibility

An essential part of research and scientific communication is researcher...
research
05/06/2020

Advancing computational reproducibility in the Dataverse data repository platform

Recent reproducibility case studies have raised concerns showing that mu...
research
02/23/2023

On Code Reuse from StackOverflow: An Exploratory Study on Jupyter Notebook

Jupyter Notebook is a popular tool among data analysts and scientists fo...
research
05/26/2023

Cluster Analysis of Open Research Data and a Case for Replication Metadata

Research data are often released upon journal publication to enable resu...
research
05/19/2023

Arukikata Travelogue Dataset

We have constructed Arukikata Travelogue Dataset and released it free of...
research
03/28/2023

Reproducibility is Nothing without Correctness: The Importance of Testing Code in NLP

Despite its pivotal role in research experiments, code correctness is of...
research
01/28/2021

Best Practices in Scientific Computing

The world is becoming increasingly complex, both in terms of the rich so...

Please sign up or login with your details

Forgot password? Click here to reset