is_reactive {assertions}R Documentation

Check if a value is reactive

Description

This function checks if a value is reactive

Usage

is_reactive(x)

Arguments

x

A value to check.

Value

A logical scalar indicating whether x is a list.

Examples

if(interactive()){
is_reactive(shiny::reactive(1)) # TRUE
is_reactive(1) # FALSE
}


[Package assertions version 0.1.0 Index]