Is there a way of make it so that knitr caches stuff so that last_plot() works properly? For example this document:
last_plot()
--- output: pdf_document ---