IDEAS home Printed from https://ideas.repec.org/p/osf/socarx/ts2wq.html
   My bibliography  Save this paper

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

Author

Listed:
  • Yen, Chai-Yi
  • Chang, Mia Huai-Wen
  • Chan, Chung-hong

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

Suggested Citation

  • Yen, Chai-Yi & Chang, Mia Huai-Wen & Chan, Chung-hong, 2019. "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," SocArXiv ts2wq, Center for Open Science.
  • Handle: RePEc:osf:socarx:ts2wq
    DOI: 10.31219/osf.io/ts2wq
    as

    Download full text from publisher

    File URL: https://osf.io/download/5d221751ce16db00195c8ebf/
    Download Restriction: no

    File URL: https://libkey.io/10.31219/osf.io/ts2wq?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:osf:socarx:ts2wq. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: OSF (email available below). General contact details of provider: https://arabixiv.org .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.