The State of Naming Conventions in R

Most programming language communities have naming conventions that are generally agreed upon, that is, a set of rules that governs how functions and variables are named. This is not the case with R, and a review of unofficial style guides and naming convention usage on CRAN shows that a number of different naming conventions are currently in use. Some naming conventions are, however, more popular than others and as a newcomer to the R community or as a developer of a new package this could be useful to consider when choosing what naming convention to adopt.

Rasmus Bååth


Text and figures are licensed under Creative Commons Attribution CC BY 4.0. The figures that have been reused from other sources don't fall under this license and can be recognized by a note in their caption: "Figure from ...".


For attribution, please cite this work as

Bååth, "The R Journal: The State of Naming Conventions in R", The R Journal, 2012

BibTeX citation

  author = {Bååth, Rasmus},
  title = {The R Journal: The State of Naming Conventions in R},
  journal = {The R Journal},
  year = {2012},
  note = {},
  doi = {10.32614/RJ-2012-018},
  volume = {4},
  issue = {2},
  issn = {2073-4859},
  pages = {74-75}