EconPapers    
Economics at your fingertips  
 

A Computational Analysis of the Dynamics of R Style Based on 94 Million Lines of Code from All CRAN Packages in the Past 20 Years

Chai-Yi Yen, Mia Huai-Wen Chang and Chung-hong Chan

No ts2wq, SocArXiv from Center for Open Science

Abstract: There are so many programming style variations in R. We have analyzed 94 million lines of R code and quantified the evolution in popularity of 12 style-elements from 1998 to 2018. We attribute 3 main factors that drive changes in programming style: effect of style-guides, effect of introducing new features, and effect of editors. We have identified community-specific programming style variations. For example, there are programming communities which do not use snake_case at all. A consensus in programming style is forming. We have summarised it into a _Consensus-based Style_.

Date: 2019-07-06
References: View complete reference list from CitEc
Citations:

Downloads: (external link)
https://osf.io/download/5d221751ce16db00195c8ebf/

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:osf:socarx:ts2wq

DOI: 10.31219/osf.io/ts2wq

Access Statistics for this paper

More papers in SocArXiv from Center for Open Science
Bibliographic data for series maintained by OSF ().

 
Page updated 2025-03-19
Handle: RePEc:osf:socarx:ts2wq