From 5b06ca0330eb383dfdd52d604d456c9e58566fa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Revilla?= Date: Thu, 4 Sep 2025 12:34:22 +0200 Subject: [PATCH 1/4] Checking gtsummary works well with the widget too --- DESCRIPTION | 1 + R/table_with_settings.R | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index bcaf803bf..83c51b828 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -37,6 +37,7 @@ Imports: styler (>= 1.2.0) Suggests: DT, + gt (>= 1.0.0), knitr (>= 1.42), lattice (>= 0.18-4), magrittr (>= 1.5), diff --git a/R/table_with_settings.R b/R/table_with_settings.R index 2adb4dc2d..235838469 100644 --- a/R/table_with_settings.R +++ b/R/table_with_settings.R @@ -111,8 +111,8 @@ table_with_settings_srv <- function(id, table_r, show_hide_signal = reactive(TRU } }) - output$table_out_main <- output$table_out_modal <- renderUI({ - rtables::as_html(table_r()) + output$table_out_main <- output$table_out_modal <- gt::render_gt({ + gtsummary::as_gt(table_r()) }) type_download_srv_table( From 65d0c8b92c7f706b39bf08de831c35a3681029e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Revilla?= Date: Thu, 4 Sep 2025 12:36:22 +0200 Subject: [PATCH 2/4] Fix dependency --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 83c51b828..7eb61a95c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -37,7 +37,7 @@ Imports: styler (>= 1.2.0) Suggests: DT, - gt (>= 1.0.0), + gtsummary (>= 2.4.0), knitr (>= 1.42), lattice (>= 0.18-4), magrittr (>= 1.5), From 9462e69295ead7826fbc93de003f61053dd19fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Revilla?= Date: Mon, 8 Sep 2025 14:14:01 +0200 Subject: [PATCH 3/4] Tweak to make it compatible --- R/table_with_settings.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/table_with_settings.R b/R/table_with_settings.R index 235838469..69486580b 100644 --- a/R/table_with_settings.R +++ b/R/table_with_settings.R @@ -111,7 +111,7 @@ table_with_settings_srv <- function(id, table_r, show_hide_signal = reactive(TRU } }) - output$table_out_main <- output$table_out_modal <- gt::render_gt({ + output$table <- output$table_out_main <- output$table_out_modal <- gt::render_gt({ gtsummary::as_gt(table_r()) }) From 7407bd91b3eb74146463b63b2cf10e012e3d84a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Revilla?= Date: Fri, 12 Sep 2025 10:16:29 +0200 Subject: [PATCH 4/4] Add gtsummary as dependency --- DESCRIPTION | 1 - 1 file changed, 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 7eb61a95c..bcaf803bf 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -37,7 +37,6 @@ Imports: styler (>= 1.2.0) Suggests: DT, - gtsummary (>= 2.4.0), knitr (>= 1.42), lattice (>= 0.18-4), magrittr (>= 1.5),