Skip to contents

[Experimental]

Check whether x is a reactive input.

Usage

check_reactive(x)

assert_reactive(x, .var.name = checkmate::vname(x), add = NULL)

test_reactive(x)

Arguments

x

an object to check.

.var.name

(string)
name of the checked object to print in assertions; defaults to the heuristic implemented in checkmate::vname().

add

(AssertCollection or NULL)
collection to store assertion messages, see checkmate::AssertCollection.

See also

assertions for more details.

Examples

check_reactive("bla")
#> [1] FALSE
check_reactive(reactive("bla"))
#> [1] TRUE