check_reactive | R Documentation |
Check that argument is reactive.
check_reactive(x, null.ok = FALSE)
test_reactive(x, null.ok = FALSE)
assert_reactive(
x,
null.ok = FALSE,
.var.name = checkmate::vname(x),
add = NULL
)
x |
[any] |
null.ok |
[ |
.var.name |
[ |
add |
[ |
Depending on the function prefix:
If the check is successful, the functions
assertClass
/assert_class
return
x
invisibly, whereas
checkClass
/check_class
and
testClass
/test_class
return
TRUE
.
If the check is not successful,
assertClass
/assert_class
throws an error message,
testClass
/test_class
returns FALSE
,
and checkClass
/check_class
return a string with the error message.
The function expect_class
always returns an
expectation
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.