Description Usage Arguments Value Examples
Expect a given function to be called during an expression.
1 | expect_called(function_name, expr)
|
function_name |
name. Either the name of the function, or
a package function given by the |
expr |
expression. An R expression that should somewhere during
it execution call |
NULL
, invisibly, but an error if the expectation
is not satisfied (i.e., function_name
is not called).
1 | # expect_called(force, force(1))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.