hookaddcap {qreport}R 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)

[Package qreport version 1.0-0 Index]