example_module {teal} | R Documentation |
An example teal
module
Description
Usage
example_module(
label = "example teal module",
datanames = "all",
transformators = list(),
decorators = list()
)
Arguments
Details
This module creates an object called object
that can be modified with decorators.
The object
is determined by what's selected in Choose a dataset
input in UI.
The object can be anything that can be handled by renderPrint()
.
See the vignette("transform-module-output", package = "teal")
or teal_transform_module
to read more about decorators.
Value
A teal
module which can be included in the modules
argument to init()
.
Examples in Shinylive
- example-1
Examples
app <- init(
data = teal_data(IRIS = iris, MTCARS = mtcars),
modules = example_module()
)
if (interactive()) {
shinyApp(app$ui, app$server)
}
[Package teal version 0.16.0 Index]