cap_knitr: cap_knitr

Description Usage Arguments Details

View source: R/cap_knitr-internal.R

Description

Option to automatically show a caption after a knitr chunk.

Usage

1
cap_knitr(where = "after")

Arguments

before

Logical determining whether to display the caption before or after the figure.

Details

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.


adletaw/captioner documentation built on Feb. 21, 2020, 10:14 p.m.