Skip to contents

[Experimental]

Usage

example_module(label = "example teal module", datanames = "all")

Arguments

label

(character(1)) Label shown in the navigation item for the module. Any label possible except "global_filters" - read more in mapping argument of teal_slices.

datanames

(character) A vector with datanames that are relevant for the item. The filter panel will automatically update the shown filters to include only filters in the listed datasets. NULL will hide the filter panel, and the keyword 'all' will show filters of all datasets. datanames also determines a subset of datasets which are appended to the data argument in server function.

Value

A teal module which can be included in the modules argument to init().

Examples

app <- init(
  data = teal_data(
    dataset("IRIS", iris),
    dataset("MTCARS", mtcars)
  ),
  modules = example_module()
)
if (interactive()) {
  shinyApp(app$ui, app$server)
}