You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should we update the formatting function in teal.slice to say No filters or remove IRIS etc? And we can't do append_text(cat(datasets$get_formatted_filter_state()) as that outputs to console and we get an app crash as we have a NULL in append_text.
)
Close#1110
Tested on `teal.modules.general::tm_a_pca()`
<details><summary> tm_a_pca code </summary>
```r
library(teal.widgets)
data <- teal_data()
data <- within(data, {
library(nestcolor)
USArrests <- USArrests
})
datanames(data) <- "USArrests"
app <- init(
data = data,
modules = modules(
tm_a_pca(
"PCA",
dat = data_extract_spec(
dataname = "USArrests",
select = select_spec(
choices = variable_choices(
data = data[["USArrests"]], c("Murder", "Assault", "UrbanPop", "Rape")
),
selected = c("Murder", "Assault"),
multiple = TRUE
),
filter = NULL
),
ggplot2_args = ggplot2_args(
labs = list(subtitle = "Plot generated by PCA Module")
)
)
)
)
if (interactive()) {
shinyApp(app$ui, app$server)
}
```
</details>
Now, when a report card is created, but no filters were specified, we
will have an extra text on a report card:
<img width="670" alt="image"
src="https://github.com/insightsengineering/teal/assets/133694481/dc532345-47ec-4b36-b188-164ac53e275d">
A potential change to this solution is to hide the `Filter State` header
(and it's empty content) at all.
---------
Co-authored-by: 27856297+dependabot-preview[bot]@users.noreply.github.com <27856297+dependabot-preview[bot]@users.noreply.github.com>
@kpagacz
If we have filters we see this:
If we don't we see this:
Should we update the formatting function in teal.slice to say No filters or remove IRIS etc? And we can't do append_text(cat(datasets$get_formatted_filter_state()) as that outputs to console and we get an app crash as we have a NULL in append_text.
Feel free to spin out to another issue or ignore
Originally posted by @nikolas-burkoff in #635 (comment)
The text was updated successfully, but these errors were encountered: