knit-hook-chunk: Knit (Chunk) Hooks

knit-hook-chunkR Documentation

Knit (Chunk) Hooks

Description

Knit (chunk) hooks to be ran before and after the execution of code chunks.

Usage

knit_hook_summary(before, options, envir)

Arguments

before, options, envir

required arguments.

Functions

  • knit_hook_summary: Hide content inside of <details><summary> ... where the summary text is the value of the chunk option.

Knitr

To use any of these functions. use the following in a R markdown document:

knitr::knit_hooks$set(NAME = knit_hook_*)

See https://yihui.org/knitr/hooks for more information.


nclJoshCowley/jcutils documentation built on Nov. 22, 2022, 10:16 a.m.