Learn R Programming

assertions (version 0.1.0)

is_reactive: Check if a value is reactive

Description

This function checks if a value is reactive

Usage

is_reactive(x)

Value

A logical scalar indicating whether x is a list.

Arguments

x

A value to check.

Examples

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

Run the code above in your browser using DataLab