Reproducible Research with R and RStudio (3rd Edition) by Christopher Gandrud