Server function that loads the data through reactive loading and then delegates
to srv_teal().
srv_teal_with_splash.Rd
Please also refer to the doc of
init().
Usage
srv_teal_with_splash(id, data, modules, filter = list())Arguments
- id
(
character)
module id to embed it, if provided, the server function must be called withshiny::moduleServer(); See the vignette for an example. However,ui_teal_with_splash()is then preferred to this function.- data
(
TealDataorTealDatasetorTealDatasetConnectororlistordata.frameorMultiAssayExperiment)R6object as returned byteal.data::cdisc_data(),teal.data::teal_data(),teal.data::cdisc_dataset(),teal.data::dataset(),teal.data::dataset_connector()orteal.data::cdisc_dataset_connector()or a singledata.frameor aMultiAssayExperimentor a list of the previous objects or function returning a named list. NOTE: teal does not guarantee reproducibility of the code when names of the list elements do not match the original object names. To ensure reproducibility please useteal.data::teal_data()orteal.data::cdisc_data()withcheck = TRUEenabled.- modules
teal_modulesobject containing the output modules which will be displayed in the teal application. Seemodules()andmodule()for more details.- filter
-
(
list)
You can define filters that show when the app starts. List names should be named according to datanames passed to thedataargument. In case of data.frame` the list should be composed as follows:list(<dataname1> = list(<varname1> = ..., <varname2> = ...), <dataname2> = list(...), ...)For example, filters for variable
Sepal.Lengthiniriscan be specified as follows:list(iris = list(Sepal.Length = list(selected = c(5.0, 7.0)))) # or list(iris = list(Sepal.Length = c(5.0, 7.0)))In case developer would like to include
NAandInfvalues in the filtered dataset.list(Species = list(selected = c(5.0, 7.0), keep_na = TRUE, keep_inf = TRUE)) list(Species = c(c(5.0, 7.0), NA, Inf))To initialize with specific variable filter with all values on start, one can use
list(Species = list())filtershould be set with respect to the class of the column:numeric:selectedshould be a two elements vector defining the range of the filter.Date:selectedshould be a two elements vector defining the date-range of the filterPOSIXct:selectedshould be a two elements vector defining thedatetimerange of the filtercharacterandfactor:selectedshould be a vector of any length defining initial values selected to filter.filterforMultiAssayExperimentobjects should be specified in slightly different way. Since it contains patient data with list of experiments,filterlist should be created as follows:
list( <MAE dataname> = list( subjects = list(<column in colData> = ..., <column in colData> = ...), <experiment name> = list( subset = list(<column in rowData of experiment> = ..., <column in rowData of experiment> = ...), select = list(<column in colData of experiment> = ..., <column in colData of experiment> = ...) ) ) )By adding the
filterableattribute it is possible to control which variables can be filtered for each dataset. See the example below whereADSLcan only be filtered byAGE,SEXorRACE.
Value
reactive, return value of srv_teal()