11 Testing
Is this code doing what I think its doing? Is this data correct?
Most code should be accompanied by some form of testing. This scales with the size and type of project. Your work should generally accompanied with testing code or outputs that show that your models behave appropriately, are statisically sound, that your code is running as you expect and your data is checked for quality.
11.1 Learn
- Test driven data analysis is a neat blog on this subject.
- There’s a testing chapter in the R Packages book.
- The vingettes and README files of the packages below are useful.