addCap {qreport} | R Documentation |
addCap
Description
Add Figure Captions to a Dataset
Usage
addCap(label = NULL, cap = NULL, scap = NULL)
Arguments
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 |
Details
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.
Value
invisible list with label
, cap
, scap
Author(s)
Frank Harrell
Examples
## Not run:
# Called from inside a knitr chunk and all information pulled from
# chunk information
addCap()
## End(Not run)
[Package qreport version 1.0-1 Index]