Description Usage Arguments Details
View source: R/cap_knitr-internal.R
Option to automatically show a caption after a knitr chunk.
1 | cap_knitr(where = "after")
|
before |
Logical determining whether to display the caption before or after the figure. |
cap_knitr sets the knitr option cap
so your captions will
automatically display. The caption is found by accessing the chunk name,
so the caption and chunk names must match. cap
takes the name of
the corresponding captioner function, in quotes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.