Description Usage Format References Examples
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.
1 |
An object of class list
of length 6.
Usage: https://yihui.org/knitr/objects/
Components in knit_hooks
: https://yihui.org/knitr/hooks/
1 2 | knit_hooks$get("source")
knit_hooks$get("inline")
|
function (x, options)
x
<environment: namespace:knitr>
function (x)
{
if (is.numeric(x))
x = round_digits(x)
paste(as.character(x), collapse = ", ")
}
<environment: namespace:knitr>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.