Make sure your code follows a consitent style using the {lintr} package. #rstats
A Linter for R CodeChecks adherence to a given style, syntax errors and possible semantic issues. Supports on the fly checking of R code edited with RStudio IDE, Emacs, Vim, Sublime Text, Atom and Visual Studio Code.