Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
28a6f94
update DESCRIPTION Remote fields
m7pr Jul 2, 2025
ca5274f
tm_a_gee
m7pr Jul 2, 2025
ea1fd23
remove filter_panel_api from tm_a_gee
m7pr Jul 2, 2025
1849293
tm_g_barchart_simple
m7pr Jul 2, 2025
afad535
add a section for modules code
m7pr Jul 2, 2025
d5fff6f
add section header for modules code to tm_a_gee to separate data filt…
m7pr Jul 2, 2025
5ed9437
tm_g_ci
m7pr Jul 2, 2025
e34e82c
tm_g_km
m7pr Jul 2, 2025
cfd5e4b
few more plots modules
m7pr Jul 2, 2025
07826d5
move title creation for tm_a_gee
m7pr Jul 3, 2025
9842177
rewrite tm_a_mmrm
m7pr Jul 3, 2025
ca45b38
add sections to tm_g_barchart
m7pr Jul 3, 2025
6cfbc77
tm_t_ancova
m7pr Jul 3, 2025
f50bde2
tm_t_binary_outcome
m7pr Jul 3, 2025
b988b7b
tm_t_coxreg
m7pr Jul 3, 2025
9ab81f0
tm_t_events
m7pr Jul 3, 2025
f420f24
tm_t_logistic
m7pr Jul 3, 2025
0d940fa
tm_t_summary_by
m7pr Jul 3, 2025
4f901d4
tm_t_summary
m7pr Jul 3, 2025
54fd201
tm_t_tte
m7pr Jul 3, 2025
7732928
tm_t_events_by_grade
m7pr Jul 3, 2025
4697ac8
tm_t_events_patyear
m7pr Jul 3, 2025
1d8bf6b
tm_t_events_summary
m7pr Jul 3, 2025
c379d66
tm_t_exposure
m7pr Jul 3, 2025
7974973
return decorated_table_q in tm_t_events_by_grade
m7pr Jul 3, 2025
aebde47
tm_t_mult_events
m7pr Jul 3, 2025
7053f94
tm_t_pp_basic_info
m7pr Jul 3, 2025
91ee548
tm_t_pp_laboratory
m7pr Jul 3, 2025
018d50c
tm_t_pp_medical_history
m7pr Jul 3, 2025
bb8af01
tm_t_pp_prior_medication
m7pr Jul 3, 2025
4e7a2ed
tm_t_smq
m7pr Jul 3, 2025
25b1633
tm_t_shiby_by_arm_by_worst
m7pr Jul 3, 2025
7fc202c
tm_t_shiby_by_arm
m7pr Jul 3, 2025
7dbc30c
tm_t_shiby_by_grade
m7pr Jul 3, 2025
465c1c4
return decorated teal_report
m7pr Jul 3, 2025
68f8edd
2 more modules
m7pr Jul 3, 2025
23491e2
Merge branch 'main' into teal_reportable
m7pr Jul 7, 2025
e2f8cfc
add inherit section
m7pr Jul 7, 2025
d97beef
styler changes
m7pr Jul 10, 2025
73661c5
change append.teal_card to c.teal_card
m7pr Jul 10, 2025
6b463a4
tm_g_pp_therapy
m7pr Jul 10, 2025
4803815
fix: reporter return was not fully reactive
averissimo Jul 14, 2025
b2ce26a
[skip roxygen] [skip vbump] Roxygen Man Pages Auto Update
github-actions[bot] Jul 14, 2025
d25c470
Merge branch 'main' into teal_reportable
m7pr Aug 28, 2025
332a7af
[skip roxygen] [skip vbump] Roxygen Man Pages Auto Update
github-actions[bot] Aug 28, 2025
9fa45a8
Merge branch 'main' into teal_reportable
m7pr Aug 28, 2025
f268134
change data to data_with_tern_options_r in tm_a_mmrm
m7pr Aug 29, 2025
e591c85
bring back label to show r code in tm_g_barchart
m7pr Aug 29, 2025
08cc6cd
bring back label in R/tm_g_forest_tte.R
m7pr Aug 29, 2025
e312af4
bring back table_renamed_q in tm_t_events
m7pr Aug 29, 2025
09064c6
typos
m7pr Aug 29, 2025
dc40f53
revmoe back decorators from 3 modules
m7pr Aug 29, 2025
85a945f
rerun documentation
m7pr Aug 29, 2025
0d744e0
curate tm_t_glm_counts
m7pr Aug 29, 2025
6de494c
[skip roxygen] [skip vbump] Roxygen Man Pages Auto Update
github-actions[bot] Aug 29, 2025
cbb8699
unneeded plot expr in ipp that duplicates the output
m7pr Sep 4, 2025
3555747
[skip roxygen] [skip vbump] Roxygen Man Pages Auto Update
github-actions[bot] Sep 4, 2025
4648a20
vbump teal and teal.reporter
m7pr Sep 4, 2025
9560b74
chunk dims for modules with plots
m7pr Sep 11, 2025
0a64a06
[skip roxygen] [skip vbump] Roxygen Man Pages Auto Update
github-actions[bot] Sep 11, 2025
5c8f88d
rename chapters
m7pr Sep 11, 2025
26daa1d
Merge branch 'teal_reportable' of https://github.com/insightsengineer…
m7pr Sep 11, 2025
036c4bb
fix 5 modules
m7pr Sep 11, 2025
45c6f4b
Apply suggestions from code review
m7pr Sep 11, 2025
5504ebf
Refactor conditional check for inner_classes
m7pr Sep 15, 2025
204e947
fix: lintr errors
averissimo Sep 16, 2025
f0c035e
chore: remove source code button from modules
averissimo Sep 17, 2025
be10a06
chore: remove show r code from ui in modules
averissimo Sep 17, 2025
c8a79c3
chore: remove remnants of show r code
averissimo Sep 17, 2025
4167870
fix: remove add to reporter button
averissimo Sep 29, 2025
de8ca1d
docs: remove section with documentation that is not yet released
averissimo Oct 3, 2025
202ea85
Revert "docs: remove section with documentation that is not yet relea…
averissimo Oct 3, 2025
1450ea9
Merge remote-tracking branch 'origin/main' into 1534-show_r_code@teal…
averissimo Oct 3, 2025
1556eae
empty: trigger ci
averissimo Oct 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions R/tm_a_gee.R
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,6 @@ ui_gee <- function(id, ...) {
),
ui_decorate_teal_data(ns("decorator"), decorators = select_decorators(a$decorators, "table"))
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("rcode"), button_label = "Show R code")
),
pre_output = a$pre_output,
post_output = a$post_output
)
Expand Down Expand Up @@ -604,14 +601,6 @@ srv_gee <- function(id,
table_r = table_r
)

# Render R code
source_code_r <- reactive(teal.code::get_code(req(decorated_table_q())))
teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = source_code_r,
title = label
)

decorated_table_q
})
}
26 changes: 2 additions & 24 deletions R/tm_a_mmrm.R
Original file line number Diff line number Diff line change
Expand Up @@ -886,9 +886,6 @@ ui_mmrm <- function(id, ...) {
)
)
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
)
),
pre_output = a$pre_output,
Expand Down Expand Up @@ -921,9 +918,6 @@ srv_mmrm <- function(id,

moduleServer(id, function(input, output, session) {
teal.logger::log_shiny_input_changes(input, namespace = "teal.modules.clinical")
# Reactive responsible for sending a disable/enable signal
# to show R code and debug info buttons
disable_r_code <- reactiveVal(FALSE)

observeEvent(input[[extract_input("cov_var", dataname)]], {
# update covariates as actual variables
Expand Down Expand Up @@ -1155,26 +1149,22 @@ srv_mmrm <- function(id,
})

# Event handler:
# When the "Fit Model" button is clicked, hide initial message, show title, disable model fit and enable
# show R code buttons.
# When the "Fit Model" button is clicked, hide initial message, show title, disable model fit button.
shinyjs::onclick("button_start", {
state$input <- mmrm_inputs_reactive()
shinyjs::hide("null_input_msg")
shinyjs::disable("button_start")
success <- try(mmrm_fit(), silent = TRUE)
if (!inherits(success, "try-error")) {
shinyjs::show("mmrm_title")
disable_r_code(FALSE)
} else {
shinyjs::hide("mmrm_title")
# show R code and debug info buttons will have already been hidden by disable_r_code
}
})

# all the inputs and data that can be out of sync with the fitted model
mmrm_inputs_reactive <- reactive({
shinyjs::disable("button_start")
disable_r_code(TRUE)
teal::validate_inputs(iv_r())
encoding_inputs <- lapply(
sync_inputs,
Expand Down Expand Up @@ -1243,9 +1233,7 @@ srv_mmrm <- function(id,
# disable the show R code button and show warning message
observeEvent(mmrm_inputs_reactive(), {
shinyjs::enable("button_start")
disable_r_code(TRUE)
if (!state_has_changed()) {
disable_r_code(FALSE)
shinyjs::disable("button_start")
}
})
Expand Down Expand Up @@ -1562,19 +1550,9 @@ srv_mmrm <- function(id,
show_hide_signal = reactive(!show_plot_rv())
)

# Show R code once button is pressed.
source_code_r <- reactive(
teal.code::get_code(req(decorated_objs_q[[obj_ix_r()]]()))
)
teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = source_code_r,
disabled = disable_r_code,
title = label
)

set_chunk_dims(pws, reactive({
decorated_objs_q[[obj_ix_r()]]()
}))

})
}
12 changes: 1 addition & 11 deletions R/tm_g_barchart_simple.R
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,6 @@ ui_g_barchart_simple <- function(id, ...) {
)
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("rcode"), button_label = "Show R code")
),
pre_output = args$pre_output,
post_output = args$post_output
)
Expand Down Expand Up @@ -594,15 +591,8 @@ srv_g_barchart_simple <- function(id,
width = plot_width
)

# Render R code
source_code_r <- reactive(teal.code::get_code(req(decorated_all_q_code())))
teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = source_code_r,
title = label
)

set_chunk_dims(pws, decorated_all_q_code)
###
})
}

Expand Down
11 changes: 0 additions & 11 deletions R/tm_g_ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,6 @@ ui_g_ci <- function(id, ...) {
),
ui_decorate_teal_data(ns("decorator"), decorators = select_decorators(args$decorators, "plot"))
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
),
pre_output = args$pre_output,
post_output = args$post_output
)
Expand Down Expand Up @@ -520,14 +517,6 @@ srv_g_ci <- function(id,
# Outputs to render.
plot_r <- reactive(decorated_plot_q()[["plot"]])

# Render R code
source_code_r <- reactive(teal.code::get_code(req(decorated_plot_q())))
teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = source_code_r,
title = label
)

pws <- teal.widgets::plot_with_settings_srv(
id = "myplot",
plot_r = plot_r,
Expand Down
11 changes: 0 additions & 11 deletions R/tm_g_forest_rsp.R
Original file line number Diff line number Diff line change
Expand Up @@ -527,9 +527,6 @@ ui_g_forest_rsp <- function(id, ...) {
)
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
),
pre_output = a$pre_output,
post_output = a$post_output
)
Expand Down Expand Up @@ -826,14 +823,6 @@ srv_g_forest_rsp <- function(id,
width = plot_width
)

# Render R code
source_code_r <- reactive(teal.code::get_code(req(decorated_all_q())))
teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = source_code_r,
title = label
)

set_chunk_dims(pws, decorated_all_q)
})
}
11 changes: 0 additions & 11 deletions R/tm_g_forest_tte.R
Original file line number Diff line number Diff line change
Expand Up @@ -528,9 +528,6 @@ ui_g_forest_tte <- function(id, ...) {
)
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("rcode"), button_label = "Show R code")
),
pre_output = a$pre_output,
post_output = a$post_output
)
Expand Down Expand Up @@ -761,14 +758,6 @@ srv_g_forest_tte <- function(id,
width = plot_width
)

# Render R code
source_code_r <- reactive(teal.code::get_code(req(decorated_all_q())))
teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = source_code_r,
title = label
)

set_chunk_dims(pws, decorated_all_q)
})
}
11 changes: 0 additions & 11 deletions R/tm_g_ipp.R
Original file line number Diff line number Diff line change
Expand Up @@ -475,9 +475,6 @@ ui_g_ipp <- function(id, ...) {
)
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("rcode"), button_label = "Show R code")
),
pre_output = a$pre_output,
post_output = a$post_output
)
Expand Down Expand Up @@ -653,14 +650,6 @@ srv_g_ipp <- function(id,
width = plot_width
)

# Render R code
source_code_r <- reactive(teal.code::get_code(req(decorated_all_q())))
teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = source_code_r,
title = label
)

set_chunk_dims(pws, decorated_all_q)
})
}
11 changes: 0 additions & 11 deletions R/tm_g_km.R
Original file line number Diff line number Diff line change
Expand Up @@ -641,9 +641,6 @@ ui_g_km <- function(id, ...) {
)
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("rcode"), button_label = "Show R code")
),
pre_output = a$pre_output,
post_output = a$post_output
)
Expand Down Expand Up @@ -874,14 +871,6 @@ srv_g_km <- function(id,
width = plot_width
)

# Render R code
source_code_r <- reactive(teal.code::get_code(req(decorated_all_q())))
teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = source_code_r,
title = label
)

set_chunk_dims(pws, decorated_all_q)
})
}
11 changes: 0 additions & 11 deletions R/tm_g_lineplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -537,9 +537,6 @@ ui_g_lineplot <- function(id, ...) {
)
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("rcode"), button_label = "Show R code")
),
pre_output = a$pre_output,
post_output = a$post_output
)
Expand Down Expand Up @@ -697,14 +694,6 @@ srv_g_lineplot <- function(id,
width = plot_width
)

# Render R code
source_code_r <- reactive(teal.code::get_code(req(decorated_all_q())))
teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = source_code_r,
title = label
)

set_chunk_dims(pws, decorated_all_q)
})
}
11 changes: 0 additions & 11 deletions R/tm_g_pp_adverse_events.R
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,6 @@ ui_g_adverse_events <- function(id, ...) {
)
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("rcode"), button_label = "Show R code")
),
pre_output = ui_args$pre_output,
post_output = ui_args$post_output
)
Expand Down Expand Up @@ -638,14 +635,6 @@ srv_g_adverse_events <- function(id,
c(table_q(), decorated_all_q_plot())
)

# Render R code
source_code_r <- reactive(teal.code::get_code(req(decorated_all_q())))
teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = source_code_r,
title = label
)

set_chunk_dims(pws, decorated_all_q)
})
}
11 changes: 0 additions & 11 deletions R/tm_g_pp_patient_timeline.R
Original file line number Diff line number Diff line change
Expand Up @@ -713,9 +713,6 @@ ui_g_patient_timeline <- function(id, ...) {
)
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("rcode"), button_label = "Show R code")
),
pre_output = ui_args$pre_output,
post_output = ui_args$post_output
)
Expand Down Expand Up @@ -960,14 +957,6 @@ srv_g_patient_timeline <- function(id,
width = plot_width
)

# Render R code
source_code_r <- reactive(teal.code::get_code(req(decorated_all_q())))
teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = source_code_r,
title = label
)

set_chunk_dims(pws, decorated_all_q)
})
}
11 changes: 0 additions & 11 deletions R/tm_g_pp_therapy.R
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,6 @@ ui_g_therapy <- function(id, ...) {
)
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("rcode"), button_label = "Show R code")
),
pre_output = ui_args$pre_output,
post_output = ui_args$post_output
)
Expand Down Expand Up @@ -730,14 +727,6 @@ srv_g_therapy <- function(id,
width = plot_width
)

# Render R code
source_code_r <- reactive(teal.code::get_code(req(decorated_all_q_plot())))
teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = source_code_r,
title = label
)

set_chunk_dims(pws, decorated_all_q_plot)
})
}
11 changes: 0 additions & 11 deletions R/tm_g_pp_vitals.R
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,6 @@ ui_g_vitals <- function(id, ...) {
)
)
),
forms = tagList(
teal.widgets::verbatim_popup_ui(ns("rcode"), button_label = "Show R code")
),
pre_output = ui_args$pre_output,
post_output = ui_args$post_output
)
Expand Down Expand Up @@ -581,21 +578,13 @@ srv_g_vitals <- function(id,
)
plot_r <- reactive(decorated_all_q()[["plot"]])

# Render R code.
source_code_r <- reactive(teal.code::get_code(req(decorated_all_q())))
pws <- teal.widgets::plot_with_settings_srv(
id = "vitals_plot",
plot_r = plot_r,
height = plot_height,
width = plot_width
)

teal.widgets::verbatim_popup_srv(
id = "rcode",
verbatim_content = source_code_r,
title = label
)

set_chunk_dims(pws, decorated_all_q)
})
}
Loading
Loading