Prepare and Evaluate Input Function and Arguments
Source:R/filterInput.R, R/updateFilterInput.R
call_input_function.RdInternal function used to prepare input arguments using
args_filter_input(), and gracefully pass them to provided input function.
Arguments
- x
The object being passed to
filterInput().- .f
The input function to be called.
- ...
Arguments passed to either
args_filter_input()or provided input function.
Details
call_filter_input() and call_update_filter_input() are used when
customizing shinyfilters. For more, see
vignette("customizing-shinyfilters").
Examples
if (FALSE) { # interactive()
library(S7)
library(shiny)
# call_filter_input() is used inside filterInput() methods
method(filterInput, class_numeric) <- function(x, ...) {
call_filter_input(x, sliderInput, ...)
}
# call_update_filter_input() is used inside updateFilterInput() methods
method(updateFilterInput, class_numeric) <- function(x, ...) {
call_update_filter_input(x, updateSliderInput, ...)
}
}