/Code-review

Code review sessions at the Tilburg University Methodology and Statistics department

Code-review

Every second Friday from 11 to 12 we meet at Tilburg's MTO department to discuss how our code can be become more efficient, reproducible and user-friendly. This is a central landing page with information and useful links.

There is a private OSF repository so that you can upload your code without concern that it will be public. Just click on the link and request access. If you do not have an OSF account you will have to create one first.

Next session

  • Friday 7/2: Collective code review of Rick's code
  • Monday 17/2: Parallel code in R

Previous sessions

  • Monday 20/1 : Introduction to Git and github
  • Friday 06/12 : Code reviewing
  • Monday 25/11 : Code reviewing
  • Friday 8/11 : Unit-testing

Edoardo presented how unit-testing works in the statcheck package, providing us a framework for a general discussion about unit-testing in R.

Potential upcoming topics

  • How to use the Lisa cluster and supercomputers
  • A bit more advanced Git
  • ggplot2
  • Submitting a paper and want to first check if your code is reproducible and understandable? Let us know and we'll plan for a session.

Learning the basics of R

  • Swirl is a great R-package that teaches the very fundamentals of R interactively inside of R itself. Perfect for someone who has never programmed before, and the webpage starts from explaining how to install R and R-studio.
  • Learning statistics with R is a nice book freely available online by Danielle Navarro, which teaches statistics using R and includes a fundamental explanation of how R works.

Efficient programming

  • Efficient R programming by Colin Gillespie and Robin Lovelace is a great book freely available online for learning the basics of efficient progamming in R.

Learn Git and Github

  • CodeAcademy offers a nice-looking beginner's course. You don't need to get the paid account.
  • KataKoda has beginner's to advanced courses on Git
  • The Github Learning Lab is a good way to familiarize yourself with Github.
  • Sublime Merge is a useful tool if you would like a more user-friendly overview of your commit history and when solving merge conflicts. Free to use, but will occasionally remind you there is a paid version.