Find variables
find_vars.Rd
This function is covered in the Case study: selecting a numeric variable section of Mastering Shiny, then updated in the Server inputs section to include the stopifnot()
checks.
Arguments
- data
reactive data object to retrieve variables from
- filter
which variables to list. This will be set by the caller of the module, so doesn’t need to be reactive
stopifnot()
From the Server inputs section,
"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()
." Read more at mastering-shiny.org.