Dynamic documents with R and knitr, 2nd edition - Xie, Y (Chapman and Hall, 2015)