rmarkdown resets the knitr options via opts_knit$restore() after rendering a document so that options changed during one render don't persist across the next document. However, this means that the options and hook definition set by kfigr also get wiped. I need to create a kfigr.initialize() function that users can call at the start of a document to set the anchor hook and kfigr options.
rmarkdown
resets theknitr
options viaopts_knit$restore()
after rendering a document so that options changed during one render don't persist across the next document. However, this means that the options and hook definition set bykfigr
also get wiped. I need to create akfigr.initialize()
function that users can call at the start of a document to set the anchor hook andkfigr
options.