reactFunc
is a tiny package that provide tools to build cacheable function
using reactive expressions.
For detail, see https://marlin-na.github.io/reactFunc/articles/reactFunc.html .
You can install it with:
devtools::install_github("marlin-na/reactFunc")
library(reactFunc)
reactfunc <- reactFunc(
ARGV = alist(x = 6, y = ),
a = x + 1,
b = y - 3,
ans = a() * b()
)
normalfunc <- asNormalFunc(reactfunc)
reactfunc(x = 6, y = 9)
normalfunc(x = 6, y = 9)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.