mkoohafkan / kfigr

A streamlined cross-referencing package designed specifically for use with knitr.
GNU General Public License v3.0
25 stars 10 forks source link

Deal with `rmarkdown`'s option wiping #6

Open mkoohafkan opened 9 years ago

mkoohafkan commented 9 years ago

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.