DefaultFilteredDataset R6 classStores any object as inert entity. Filtering is not supported.
teal.slice::FilteredDataset -> DefaultFilteredDataset
Inherited methods
teal.slice::FilteredDataset$finalize()teal.slice::FilteredDataset$get_dataname()teal.slice::FilteredDataset$get_dataset()teal.slice::FilteredDataset$get_dataset_label()teal.slice::FilteredDataset$get_keys()teal.slice::FilteredDataset$print()teal.slice::FilteredDataset$srv_active()teal.slice::FilteredDataset$srv_add()
new()Initializes this DefaultFilteredDataset object.
DefaultFilteredDataset$new(dataset, dataname, label = character(0))datasetany type of object; will not be filtered.
dataname(character(1))
syntactically valid name given to the dataset.
label(character(1))
label to describe the dataset.
Object of class DefaultFilteredDataset, invisibly.
format()Returns a formatted string representing this DefaultFilteredDataset object.
DefaultFilteredDataset$format(show_all, trim_lines = FALSE)show_all(logical(1)) for method consistency, ignored.
trim_lines(logical(1)) flag specifying whether to trim lines if class names are too long.
The formatted string.
get_call()DefaultFilteredDataset$get_call(sid)sid(character(1)) for method consistency, ignored.
NULL, invisibly.
get_filter_state()DefaultFilteredDataset$get_filter_state()NULL, invisibly.
set_filter_state()DefaultFilteredDataset$set_filter_state(state)state(teal_slices) for method consistency, ignored.
NULL, invisibly.
clear_filter_states()DefaultFilteredDataset$clear_filter_states(force)force(logical(1)) for method consistency, ignored.
NULL, invisibly.
get_filter_overview()Creates row for filter overview in the form of
dataname - unsupported data class
DefaultFilteredDataset$get_filter_overview()A data.frame.
ui_active()Overwrites parent method.
DefaultFilteredDataset$ui_active(id, allow_add)id(character(1))
shiny module instance id.
allow_add(ignored)
Blank UI module that would list active filter states for this dataset.
An empty div.
ui_add()Overwrites parent method.
DefaultFilteredDataset$ui_add(id)id(character(1))
shiny module instance id.
Blank UI module that would list active filter states for this dataset.
An empty div.
clone()The objects of this class are cloneable with this method.
DefaultFilteredDataset$clone(deep = FALSE)deepWhether to make a deep clone.
# use non-exported function from teal.slice
DefaultFilteredDataset <- getFromNamespace("DefaultFilteredDataset", "teal.slice")
library(shiny)
ds <- DefaultFilteredDataset$new(letters, "letters")
isolate(ds$get_filter_state())
isolate(ds$get_call())
Run the code above in your browser using DataLab