When specifying initial filters, enumerating factor levels in a non-alphabetical order causes the app to change the filter state, which results in filter state history before the user changes the filter.
library(teal)
filter <- teal_slices(
teal_slice("i", "Species", selected = c("virginica", "versicolor"))
)
data <- teal_data() |> within({
i <- iris
m <- mtcars
f <- faithful
})
app <- init(data, example_module(), filter)
runApp(app)
What happened?
When specifying initial filters, enumerating factor levels in a non-alphabetical order causes the app to change the filter state, which results in filter state history before the user changes the filter.
After changing
filter
tosessionInfo()
No response
Relevant log output
No response
Code of Conduct
Contribution Guidelines
Security Policy