Chapter 14 Miscellaneous knitr Tricks

Besides chunk options (Chapter 11), output hooks (Chapter 12), and chunk hooks (Chapter 13), there are other useful functions and tricks in knitr. We introduce these tricks in this chapter, such as how to reuse code chunks, exit knitting early, display a plot in a custom place, and so on.