# Self-Admitted Technical Debt in R Packages: An Exploratory Study

### Abstract

Publication
M. Vidoni, ‘Self-Admitted Technical Debt in R Packages: An Exploratory Study’, in IEEE/ACM 18th International Conference on Mining Software Repositories (MSR), 2021, pp. 179-189. DOI: 10.1109/MSR52588.2021.00030

## Contributions

More than 164k of comments were manually read and classified into 12 types of TD. The A-Survey obtained about 102 responses, while Q-Survey surpassed the expected threshold to obtain 140 complete responses. This manuscript makes the following contributions:

• An analysis of TD in R packages. Results showcase an excessive amount of outdated code left commented out, poor testing quality with comments written to avoid automation of tests, and a tendency to bypass CRAN checks. Moreover, Code and Test are the types of TD most commonly admitted, albeit Algorithm Debt was also detected. Comment quality was often deemed low and obscure, and developers indicated they seldom address it in their packages.

• A comparison with results from other studies, also exploring source code comments, but in OOP projects. This includes SATD text patterns, developers’ perspectives, and types of datasets.

• A dataset of SATD comments in a large variety of R packages for use in future studies, as well as the final list of text patterns discovered in this study. See: https://doi.org/10.5281/zenodo.4558219

## Ethical Considerations

The methodology used in this manuscript was approved by RMIT University Human Ethics Research Committee (HREC), with project code 2020-23517.

## Acknowledgements

The author acknowledges Associate Professor John Ormerod from the School of Mathematics and Statistics at the University of Sydney (Australia) for his assistance when calculating the sample sizes for the survey. Additionally, the author thanks the developers who participated in the surveys and the volunteers advising on the pre-classification. Finally, the author is grateful to the anonymous reviewers for their careful reading of the manuscript and their insightful comments and suggestions.

## Citation

@INPROCEEDINGS {Vidoni2021b,
author = {M.  Vidoni},
booktitle = {2021 2021 IEEE/ACM 18th International Conference on Mining Software Repositories (MSR) (MSR)},
title = {Self-Admitted Technical Debt in R Packages: An Exploratory Study},
year = {2021},
volume = {},
issn = {},
pages = {179-189},
doi = {10.1109/MSR52588.2021.00030},
url = {https://doi.ieeecomputersociety.org/10.1109/MSR52588.2021.00030},
publisher = {IEEE Computer Society},
address = {Los Alamitos, CA, USA},
}