Materials for rstudio::conf 2019 talk on "Getting It Right: Writing Reliable and Maintainable R code"
The "Resources" list at the end of the talk contain links to excellent written and video resources used to prepare this material.
conf2019testing contains the sample package used for demonstrating the testthat
package.