Closed averissimo closed 6 months ago
The current example of init() function defines an initial filter state with module-specific filters, but they are not shown in the application
init()
Proposed solution:
Add module_specific = TRUE to the teal_slices call in the example
module_specific = TRUE
teal_slices
filter <- teal_slices( teal_slice(dataname = "iris", varname = "Species", id = "species"), teal_slice(dataname = "iris", varname = "Sepal.Length", id = "sepal_length"), teal_slice( dataname = "iris", id = "long_petals", title = "Long petals", expr = "Petal.Length > 5" ), teal_slice(dataname = "mtcars", varname = "mpg", id = "mtcars_mpg"), mapping = list( module1 = c("species", "sepal_length"), module2 = c("mtcars_mpg"), global_filters = "long_petals" ) ) app <- init( data = teal_data(iris = iris, mtcars = mtcars), modules = list( module("module1"), module("module2") ), filter = filter ) if (interactive()) { shinyApp(app$ui, app$server) }
No response
What happened?
The current example of
init()
function defines an initial filter state with module-specific filters, but they are not shown in the applicationProposed solution:
Add
module_specific = TRUE
to theteal_slices
call in the examplesessionInfo()
No response
Relevant log output
No response
Code of Conduct
Contribution Guidelines
Security Policy