Learn R Programming

qreport (version 1.0-1)

hookaddcap: hookaddcap

Description

Set knitr to Automatically Call addCap in Figure-Producing Chunks

Usage

hookaddcap(loc = NULL)

Value

nothing; calls knitr hook and chunk option setting functions

Arguments

loc

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

Author

Frank Harrell

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.

Examples

Run this code
if (FALSE) {
hookaddcap()
}

Run the code above in your browser using DataLab