Vector-specific filter module server function
shiny_vector_filter.RdThe shiny_vector_filter family of S3 dispatched functions use the
input data to route to the appropriate ui and server functions for the vector
datatype.
Details
The shiny_vector_filter functions return the shiny module server
functions to use for the specified filter. These functions should follow the
following template:
function(input, output, session, x, filter_na, verbose = FALSE) {
# ... additional code here
reactiveValues(code = TRUE, mask = TRUE)
}This function will conform to the following specification
Arguments
inputrequisite shiny module field specifying incoming ui input reactiveValues
outputrequisite shiny module field capturing output for the shiny data filter ui
sessionrequisite shiny module field containing the active shiny session
xa reactive expression resolving to the vector to filter
filter_naa logical value indicating whether to filter
NAvalues from thexvectorverbosea
logicalvalue indicating whether or not to print log statements out to the console
Value
a reactiveValues list containing a logical vector
called "mask" which can be used to filter the provided vector and an element
"code" which is the expression used to generate the mask.