powered by
Set knitr to Automatically Call addCap in Figure-Producing Chunks
knitr
addCap
hookaddcap(loc = NULL)
nothing; calls knitr hook and chunk option setting functions
if non-NULL will be used to set the knitr chunk option fig.cap.location
NULL
fig.cap.location
Frank Harrell
Adds a knitr hook that takes effect before the chunk is run. The hook function retrieves figure information from the current chunk to give to addCap.
if (FALSE) { hookaddcap() }
Run the code above in your browser using DataLab