Change the Knitr renderer so that the last computed object is automatically saved as .Last.chunk, and to record results from a chunk with chunk options record=.

hook_last_chunk()

Value

The opts_chunk or the knit_hook set accordingly.