Automatic Detection and Analysis of Technical Debts in Peer-Review Documentation of R Packages

Junaed Younus Khan, Gias Uddin
1/11/2022
cs.SE

Official code: disa-lab/R-TD-SANER2022 (0 stars, Jupyter Notebook, MIT, last commit 2021-12-19).

Abstract

Technical debt (TD) is a metaphor for code-related problems that arise as a result of prioritizing speedy delivery over perfect code. Given that the reduction of TDs can have long-term positive impact in the software engineering life-cycle (SDLC), TDs are studied extensively in the literature.

Show full abstract

However, very few of the existing research focused on the technical debts of R programming language despite its popularity and usage. Recent research by Codabux et al. [21] finds that R packages can have 10 diverse TD types analyzing peer-review documentation. However, the findings are based on the manual analysis of a small sample of R package review comments. In this paper, we develop a suite of Machine Learning (ML) classifiers to detect the 10 TDs automatically. The best performing classifier is based on the deep ML model BERT, which achieves F1-scores of 0.71 - 0.91. We then apply the trained BERT models on all available peer-review issue comments from two platforms, rOpenSci and BioConductor (13.5K review comments coming from a total of 1297 R packages). We conduct an empirical study on the prevalence and evolution of 10 TDs in the two R platforms. We discovered documentation debt is the most prevalent among all types of TD, and it is also expanding rapidly. We also find that R packages of generic platform (i.e. rOpenSci) are more prone to TD compared to domain-specific platform (i.e. BioConductor). Our empirical study findings can guide future improvements opportunities in R package documentation. Our ML models can be used to automatically monitor the prevalence and evolution of TDs in R package documentation.

View on arXivView PDF

Code Implementations(1)

MIT
00Jupyter NotebookDec 19, 20214 years agoMIT

Similar Papers

Cite this paper

@article{khan2022automatic,
  title  = {Automatic Detection and Analysis of Technical Debts in Peer-Review Documentation of R Packages},
  author = {Junaed Younus Khan and Gias Uddin},
  year   = {2022},
  eprint = {2201.04241},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2201.04241}
}

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/2201.04241.svg)](https://codeofpaper.com/paper/2201.04241)

Discussion