hookaddcap: hookaddcap

hookaddcapR Documentation

hookaddcap

Description

Set knitr to Automatically Call addCap in Figure-Producing Chunks

Usage

hookaddcap(loc = NULL)

Arguments

loc

if non-NULL will be used to set the knitr chunk option fig.cap.location

Details

Adds a knitr hook that takes effect before the chunk is run. The hook function retrieves figure information from the current chunk to give to addCap.

Value

nothing; calls knitr hook and chunk option setting functions

Author(s)

Frank Harrell

Examples

## Not run: 
hookaddcap()

## End(Not run)

qreport documentation built on May 29, 2024, 3:51 a.m.