Difference between revisions of "R Coding Practices"

Jump to: navigation, search
(Created page with "<onlyinclude> This article lays out some best practices for coding using R. Though it is possible to use R without it, the RStudio integrated development environment makes its...")
 
 
(One intermediate revision by one other user not shown)
Line 23: Line 23:


==RStudio projects==
==RStudio projects==
== Additional Resources ==
* [https://www.r-bloggers.com/r-code-best-practices/| R-bloggers post on best practices]
[[Category: Coding Practices]]

Latest revision as of 16:44, 14 April 2021

This article lays out some best practices for coding using R. Though it is possible to use R without it, the RStudio integrated development environment makes its use easier and is the standard among R users. There is not a single set of best practices and the guidelines below are suggestions that can and should be adapted the each project's needs, as well as users' preferences


Read First

  • RStudio
  • Comments
  • Objects names

Package installation

Comments and script structure

Naming objects

Style and white space

Loops in R

Tidyverse

Version control

RStudio projects

Additional Resources