Description Usage Arguments Value See Also Examples
Checks to see if the input is a function.
1 2 3 4 5 6 7 8 9 10 11 | assert_is_function(x, severity = getOption("assertive.severity", "stop"))
assert_is_primitive(x, severity = getOption("assertive.severity", "stop"))
assert_is_stepfun(x, severity = getOption("assertive.severity", "stop"))
is_function(x, .xname = get_name_in_parent(x))
is_primitive(x, .xname = get_name_in_parent(x))
is_stepfun(x, .xname = get_name_in_parent(x))
|
x |
Input to check. |
severity |
How severe should the consequences of the assertion be?
Either |
.xname |
Not intended to be used directly. |
is_function
, is_primitive
and is_stepfun
wrap is.function
, is.primitive
and is.stepfun
repsectively, providing more information on failure. The
assert_*
functions return nothing but throw an error if the
corresponding is_*
function returns FALSE
.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.