Learn R Programming

knitr (version 0.6.3)

knit_hooks: Hooks for R code chunks, inline R code and output

Description

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.

Usage

knit_hooks

Arguments

format

List of 4 $ get :function (name, default = FALSE) $ set :function (...) $ merge :function (values) $ restore:function ()

References

Usage: http://yihui.name/knitr/objects

Components in knit_hooks: http://yihui.name/knitr/hooks

Examples

Run this code
knit_hooks$get("source")
knit_hooks$get("inline")

Run the code above in your browser using DataLab