Make a function to retrieve a parameter from an environment if not explicitly specified, and if it is not already such a function.

ensure_reactable(item, env_name = NULL)

Arguments

item

Thing to ensure is "reactable".

env_name

Name of variable in environment to retrieve value from, if item is NULL.