knit-hook-chunk | R Documentation |
Knit (chunk) hooks to be ran before and after the execution of code chunks.
knit_hook_summary(before, options, envir)
before, options, envir |
required arguments. |
knit_hook_summary
: Hide content inside of <details><summary> ...
where the summary text
is the value of the chunk option.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.