ic-single-use | R Documentation |
ic()
These functions let you evaluate an expression with either ic()
enabled or disabled without
affecting if ic()
is enabled globally.
with_ic_enable(expr)
with_ic_disable(expr)
expr |
An expression containing the |
Returns the result of evaluating the expression.
with_ic_enable()
: evaluates the expression with ic()
enabled.
with_ic_disable()
: evaluates the expression with ic()
disabled.
ic_enable()
fun <- function(x) {
ic(x * 100)
}
fun(2)
with_ic_disable(fun(2))
fun(4)
ic_disable()
fun(1)
with_ic_enable(fun(1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.