as_tdata | R Documentation |
teal_data
objects in modules for compatibilityConvert teal_data
to tdata
in teal
modules.
as_tdata(x)
x |
data object, either |
Recent changes in teal
cause modules to fail because modules expect a tdata
object
to be passed to the data
argument but instead they receive a teal_data
object,
which is additionally wrapped in a reactive expression in the server functions.
In order to easily adapt such modules without a proper refactor,
use this function to downgrade the data
argument.
Object of class tdata
.
td <- teal_data()
td <- within(td, iris <- iris) %>% within(mtcars <- mtcars)
td
as_tdata(td)
as_tdata(reactive(td))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.