-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Milestone
Description
What happened?
Please check the app and see that dplyr::filter(Species %in% c("setosa", "versicolor", "virginica")) is executed even if not needed
options(teal.log_level = "DEBUG")
devtools::load_all("teal.data")
devtools::load_all("teal.transform")
devtools::load_all("teal")
data <- within(teal.data::teal_data(), {
iris <- iris
mtcars <- mtcars
})
app <- init(
data = data,
modules = modules(
modules(
label = "Testing modules",
tm_merge(
label = "non adam",
picks = list(
a = picks(
datasets("iris", "iris"),
variables(
choices = c("Sepal.Length", "Species"),
selected = "Species"
),
values()
)
)
)
)
)
)
shinyApp(app$ui, app$server, enableBookmarking = "server")To determine if filter is needed:
selectedis different than possible-choices.- possible-choices is different term than
choices.choicescan be set by app-developer usingvalues(choices)and they can be different than original choices. It means thatselected != choicesis not the same asselected != possible-choices. - with above it is non-trivial or "expensive" in terms of a design to achieve this, but perhaps one can find a good way
llrs-roche