knitr::opts_chunk$set(echo = TRUE)
devtools::load_all()
R package for injecting code into existing functions.
library(injectr)
Look for the documentation of the inject_code
.
f <- function(x) { x*x } inject_code(message("f called with x: ", x), f) f(42)
f <- function(x) { x*x } inject_code(message("f called with x: ", x, " returning: ", returnValue()), f, "onexit") f(42)
{sh building, eval=FALSE}
make build
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.