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 withdatanames
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 thedata
argument 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)
}