addCap | R Documentation |
Add Figure Captions to a Dataset
addCap(label = NULL, cap = NULL, scap = NULL)
label |
figure label to use if not fetched from chunk information |
cap |
caption to use if not from chunk |
scap |
short caption to use if not from chunk |
Fetches the figure caption and optional short caption from the currently running code chunk (under knitr
) and appends them to a running caption dataset named .captions.
in the global environment. This facilites customizing a table of figures in a report.
invisible list with label
, cap
, scap
Frank Harrell
## Not run:
# Called from inside a knitr chunk and all information pulled from
# chunk information
addCap()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.