Writing good code is hard. Some aspects get easier with experience – although I observe that I consistently forget some things. đŸ™ˆ Other aspects can be tackled through code review – although your reviewer’s time will be better spent on design questions than on nitpicks. đŸ’… Static code analysis can help with code quality.
In this post I will show how I set up packages to benefit from the lintr R package for static code analysis.
Step 1: Add a lintr configuration file
I start …