Variable input server module
selectVarServer.Rd
This module function comes from the Server inputs section of Mastering Shiny.
Arguments
- id
module id
- data
reactive data object to retrieve variables from
- filter
passed to
find_vars()
, i.e., the type of variables to list (this will be set by the caller of the module, so doesn’t need to be reactive
stopifnot()
check that each input to your module is either reactive or constant. If you don’t, and the user supplies the wrong type, they’ll get a cryptic error message. You can make the life of module user much easier with a quick and dirty call to stopifnot()