ABSTRACT

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