Naming something in general, and especially in R, can be quite tricky, because there seems to be no real consensus about naming conventions for packages and functions. Since I am currently in the process of releasing an R package, I wanted to get more recent data about the usage of different naming styles for R packages and package functions. My hypothesis was that the users most probably are familiar with the naming conventions which are used by the most downloaded R packages and therefore it might make sense to adopt these naming styles.
For my small analysis project I distinguished between the following naming styles:
- lowercase (lc)
- UPPERCASE (UC)
- lowerCamelCase (lCC)
- UpperCamelCase (UCC)
- name_with_underscores (us / snake_case)
- name.with.dots (dot)