Arguments
- label
(
character(1)) Label shown in the navigation item for the module or module group. Formodules()defaults to"root". SeeDetails.- datanames
(
character) A vector withdatanamesthat are relevant for the item. The filter panel will automatically update the shown filters to include only filters in the listed datasets.NULLwill hide the filter panel, and the keyword"all"will show filters of all datasets.datanamesalso determines a subset of datasets which are appended to thedataargument in server function.
Value
A teal module which can be included in the modules argument to init().
Examples
app <- init(
data = teal_data(IRIS = iris, MTCARS = mtcars),
modules = example_module()
)
if (interactive()) {
shinyApp(app$ui, app$server)
}