Warning: Undefined variable $ub in /home1/qwtfbamy/public_html/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 148

Warning: Undefined variable $ub in /home1/qwtfbamy/public_html/wp-content/plugins/advanced-page-visit-counter/public/class-advanced-page-visit-counter-public.php on line 160
Best Practices for Programming in R – Arushi Garg

Best Practices for Programming in R

This document is meant to inform academics, students, and anybody learning to code, especially in R using RStudio, the specific measures that can be taken to make code more readable. High readability of code is likely to lead to higher reliability of results, higher reproducibility, higher efficiency of coding and higher reusability among other things. Readability and quality control of code is largely neglected in science and academia and often even seen as unnecessary. However, having worked in the software industry in a company known to follow rigorous quality standards, I understand its importance. These are practices that I have adapted into coding with R in my own scientific work and highly recommend to others.

These slides were prepared for live presentations but I have tried to make them self-explanatory to also be usable independently. Some version of these slides have been presented so far in:

  1. R Ladies, Nijmegen, the Netherlands on June 11th 2020
  2. Open Science Community, Nijmegen, the Netherlands on October 28th 2020
  3. R Ladies, Coventry, the UK on December 4th 2020
  4. R Ladies Bergen, Norway on March 22nd, 2021
  5. Key Practices for the Language Scientist, International Max Planck Research School on April 1st, 2021
  6. Key Practices for the Language Scientist, International Max Planck Research School, 2022
  7. Key Practices for the Language Scientist, International Max Planck Research School on January 23rd, 2023

The current version of the presentation uploaded here is closest to that presented in R Ladies Coventry on December 4th 2020. However, it will probably be updated from time to time with future iterations.

230222 Best Practice for Programming in R

If you would like me to give a talk or conduct a workshop on this topic, feel free to contact me using the Contact page.

Posted in R