powered by
This function checks if a value is reactive
is_reactive(x)
A logical scalar indicating whether x is a list.
x
A value to check.
if(interactive()){ is_reactive(shiny::reactive(1)) # TRUE is_reactive(1) # FALSE }
Run the code above in your browser using DataLab