hook_tab.cap: Chunk Tag 'tab.cap' Extension for package:knitr

Description Usage Details References

View source: R/hook-functions.r

Description

knitr hook functions are called when the corresponding chunk options are not NULL to do additional jobs beside the R code in chunks. eattacher provides the hook tab.cap and tab.scap which are meant to be analogous to fig.cap and fig.scap, respectively.

Usage

1

Details

the function hook_tab.cap is set as a hook in knitr when attacher is attached (and removed when attacher is detached).This hook creates an \begintable environment before the chunk output, as well as a caption, and a \endtable after the chunk output (+ label, etc.) The hook_tab.scap shortens the caption for the 'lot'.

References

http://yihui.name/knitr/hooks#chunk_hooks


renlund/attacher documentation built on Jan. 25, 2022, 6:33 p.m.