Update Chapter 5 for new version of knitr