Description Usage Arguments Value Note Author(s)
These hooks are intended for use with knitr. There is usually no need to call them directly.
1 2 3 4 5 | fig.cap_chunk_hook(before, options, envir)
fig.cap_opts_hook(options)
tab.cap_opts_hook(options)
|
before |
Logical indicating whether the hook was called befere or after the chunk has been processed. |
options |
List of chunk options. |
envir |
Environment in which the chunk is evaluated. |
The chunk hooks produce markup that adds anchors to enable direct links to the table or figure and add s the caption where required.
fig.cap_opts_hook
returns a list of chunk options
adjusted for the requested figure format.
tab.cap_opts_hook
returns a list of chunk options with
the tab.cap
option augmented for automatic table numbering.
These hooks are intended for chunks with the fig.cap
(for figures) and
tab.cap
(for tables) option and this is assumed to be present.
Peter Humburg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.