Description Usage Details References
View source: R/hook-functions.r
knitr hook functions are called when the corresponding
chunk options are not NULL
to do additional jobs beside the R code
in chunks. eattacher provides the hook tab.cap
and
tab.scap
which are meant to be analogous to fig.cap
and
fig.scap
, respectively.
1 |
the function hook_tab.cap is set as a hook in knitr when attacher is attached (and removed when attacher is detached).This hook creates an \begintable environment before the chunk output, as well as a caption, and a \endtable after the chunk output (+ label, etc.) The hook_tab.scap shortens the caption for the 'lot'.
http://yihui.name/knitr/hooks#chunk_hooks
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.