block_hook: Chunk Block building hooks.

Description Usage Arguments Value

Description

Block building knitr hooks.

Dispatches the block building hook to be set in knitr.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
block_hook(out.format = "markdown")

hook_html(before, options, envir, name = "literal")

hook_latex(before, options, envir, name = "literal")

hook_markdown_v1(before, options, envir, name = "literal")

hook_markdown_v2(before, options, envir, name = "literal")

hook_markdown_latest(before, options, envir, name = "literal")

Arguments

out.format

Name of out.format as given by opts_knit$get("out.format")

before

If TRUE chunk code has not been executed.

options

Current knitr chunk options.

envir

Environment in which code chunk is evaluated.

name

Name of the hook as $set in knitr.

Value

character vector of built block if before is TRUE.

block_hook returns the hook_ function for out.format.


Thell/knitLiteral documentation built on May 9, 2019, 4:28 p.m.