GitHub
LinkedIn
Twitter
YouTube
RSS

Training Course Details

R Best Practices

R Best Practices

Course Level: Intermediate

So you can write code? Great. But can you write code which is easy to read, simple to maintain, and reproducible? Under the pressure of deadlines even the best of us can fall victim to bad-practices. In this course we motivate the importance of good-practices, and show how we can make best practices second nature by incorporating them into our normal workflow.

No Events Currently Scheduled

Sorry, there are no upcoming events for this course, but please get in touch if you would like to be kept informed when events are scheduled in the future.

View our full training course calendar »

Course Details

  • Course Outline
  • Learning Outcomes
  • Materials
  • Prior Knowledge

Course Outline

  • Naming: Creating user-friendly variable and function names.
  • Writing Modular Code: Functions that do one thing, well.
  • Documentation: Writing helpful comments & documentation.
  • Code Style: Using spacing and conventions to make code more readable.
  • Testing: Code coverage and error handling.
  • Working Collaboratively: Techniques such as code reviews and pair programming.
  • Reproducible Workflows: Introduction to version control and building an analysis workflow.

Learning Outcomes

By the end of the course participants will…

  • understand the importance of clean code.
  • write functions to minimise duplication.
  • reflect on and refactor code.
  • write code for humans not computers.
  • work collaboratively through pair programming.

Materials

  • Example course material for 'R Best Practices
  • Example course material for 'R Best Practices
  • Example course material for 'R Best Practices
  • Example course material for 'R Best Practices
  • Example course material for 'R Best Practices

Prior Knowledge

This course assumes basic knowledge of R. You should be comfortable writing simple R functions. Attending the Introduction to Programming with R course will provide sufficient background.

Attendee Feedback