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
Author
Frank Harrell
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.