knitr hook functions are called when the corresponding chunk options
NULL to do additional jobs beside the R code in chunks.
kfigr provides the hook "anchor" which adds an HTML anchor tag
immediately above a code chunk.
the function hook_anchor is set as a hook in knitr when
kfigr is attached (and removed when kfigr is detached). It
writes an HMTL anchor tag directly above a code chunk in the form
<a name="chunk-name"></a> where
chunk-name is the chunk
label contained in
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.