Skip to content

Commit 1159a49

Browse files
authored
Merge branch 'main' into 495_plot_missing@main
2 parents ee7f4b6 + 5d3972f commit 1159a49

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ default_language_version:
66
python: python3
77
repos:
88
- repo: https://github.com/lorenzwalthert/precommit
9-
rev: v0.4.3.9014
9+
rev: v0.4.3.9015
1010
hooks:
1111
- id: style-files
1212
name: Style code with `styler`

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.9003
5-
Date: 2025-09-23
4+
Version: 0.5.0.9004
5+
Date: 2025-10-01
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# teal.modules.general 0.5.0.9003
1+
# teal.modules.general 0.5.0.9004
2+
3+
### Enhancements
4+
5+
- Modules now return a `teal_report` object that contains the data, code and reporter. All the reporter buttons were removed from the modules' UI.
26

37
# teal.modules.general 0.5.0
48

R/tm_g_distribution.R

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,13 +1272,13 @@ srv_distribution <- function(id,
12721272
output_dist_q <- reactive(c(common_q(), req(dist_q())))
12731273
output_qq_q <- reactive(c(common_q(), req(qq_q())))
12741274

1275-
# Summary table listing has to be created separately to allow for qenv join
1276-
q_common <- common_q()
1277-
teal.reporter::teal_card(q_common) <- c(
1278-
teal.reporter::teal_card(q_common),
1279-
"## Statistics table"
1280-
)
12811275
output_summary_q <- reactive({
1276+
# Summary table listing has to be created separately to allow for qenv join
1277+
q_common <- common_q()
1278+
teal.reporter::teal_card(q_common) <- c(
1279+
teal.reporter::teal_card(q_common),
1280+
"## Statistics table"
1281+
)
12821282
if (iv_r()$is_valid()) {
12831283
within(q_common, {
12841284
summary_table <- rtables::df_to_tt(summary_table_data)
@@ -1358,7 +1358,7 @@ srv_distribution <- function(id,
13581358
output$summary_table <- DT::renderDataTable(summary_r())
13591359

13601360
tests_r <- reactive({
1361-
q <- req(output_test_q())
1361+
q <- req(decorated_output_test_q())
13621362
DT::datatable(q[["test_table_data"]])
13631363
})
13641364

@@ -1384,7 +1384,7 @@ srv_distribution <- function(id,
13841384

13851385
decorated_output_q <- reactive({
13861386
tab <- req(input$tabs) # tab is NULL upon app launch, hence will crash without this statement
1387-
test_q_out <- output_test_q()
1387+
test_q_out <- decorated_output_test_q()
13881388

13891389
out_q <- switch(tab,
13901390
Histogram = decorated_output_dist_dims_q(),

0 commit comments

Comments
 (0)