A hook is a function of a pre-defined form (arguments) that takes values of
arguments and returns desired output. The object knit_hooks
is used to
access or set hooks in this package.
knit_hooks
An object of class list
of length 7.
Usage: https://yihui.org/knitr/objects/
Components in knit_hooks
: https://yihui.org/knitr/hooks/
knit_hooks$get("source")
#> function (x, options)
#> x
#> <bytecode: 0x563147b95d50>
#> <environment: namespace:knitr>
knit_hooks$get("inline")
#> function (x)
#> {
#> if (is.numeric(x))
#> x = round_digits(x)
#> paste(as.character(x), collapse = ", ")
#> }
#> <bytecode: 0x563147b92690>
#> <environment: namespace:knitr>