Skip to content

Commit 9bd816c

Browse files
committed
Merge remote-tracking branch 'origin/main' into 400_include_filter_state_yaml
2 parents 9f9a665 + 3deb790 commit 9bd816c

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Type: Package
22
Package: teal.modules.general
33
Title: General Modules for 'teal' Applications
4-
Version: 0.5.0.9005
5-
Date: 2025-10-07
4+
Version: 0.5.0.9006
5+
Date: 2025-10-14
66
Authors@R: c(
77
person("Dawid", "Kaledkowski", , "[email protected]", role = c("aut", "cre")),
88
person("Pawel", "Rucki", , "[email protected]", role = "aut"),

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# teal.modules.general 0.5.0.9005
1+
# teal.modules.general 0.5.0.9006
22

33
### Enhancements
44

R/tm_outliers.R

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -648,8 +648,8 @@ srv_outliers <- function(id, data, outlier_var,
648648
)
649649
}
650650

651+
teal.reporter::teal_card(qenv) <- c(teal.reporter::teal_card(qenv), "### Summary Table")
651652
qenv <- if (length(categorical_var) > 0) {
652-
teal.reporter::teal_card(qenv) <- c(teal.reporter::teal_card(qenv), "### Summary Table")
653653
qenv <- teal.code::eval_code(
654654
qenv,
655655
substitute(
@@ -739,16 +739,19 @@ srv_outliers <- function(id, data, outlier_var,
739739
categorical_var_name = as.name(categorical_var)
740740
)
741741
)
742-
)
742+
) |> within({
743+
table <- rtables::df_to_tt(summary_data)
744+
table
745+
})
743746
} else {
744-
within(qenv, summary_data <- data.frame())
747+
msg <- "No categorical variable selected, summary table cannot be created."
748+
showNotification(msg,
749+
closeButton = FALSE, type = "warning",
750+
id = session$ns("no_summary_table")
751+
)
752+
within(qenv, cat(msg), msg = msg)
745753
}
746754

747-
# Generate decoratable object from data
748-
qenv <- within(qenv, {
749-
table <- rtables::df_to_tt(summary_data)
750-
table
751-
})
752755

753756
if (length(categorical_var) > 0 && nrow(qenv[["ANL_OUTLIER"]]) > 0) {
754757
shinyjs::show("order_by_outlier")

man/tm_outliers.Rd

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)