R code: quality standards

  • Use lintr in R studio via Marker pane / Diagnostics
  • Write code in Rmarkdown, adding a few notes at the end on reproducibility of the analysis
  • Use Git: local data (proprietary/sensitive), cloud code
  • Use modular code
  • Comment your code
  • Don’t Repeat Yourself (DRY)
  • Be concise, clear and consistent
  • Style Guide: Hadley and Google