Skip to content

Commit

Permalink
bring back input
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Jun 13, 2024
1 parent 40a1115 commit 8c7abd3
Show file tree
Hide file tree
Showing 36 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion R/tm_a_gee.R
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ srv_gee <- function(id,
checkmate::assert_class(isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
## split_covariates ----
observeEvent(input[[extract_input("cov_var", dataname)]],
ignoreNULL = FALSE,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_a_mmrm.R
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ srv_mmrm <- function(id,
checkmate::assert_class(isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
# Reactive responsible for sending a disable/enable signal
# to show R code and debug info buttons
disable_r_code <- reactiveVal(FALSE)
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_barchart_simple.R
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ srv_g_barchart_simple <- function(id,

moduleServer(id, function(input, output, session) {

tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
rule_dupl <- function(others) {
function(value) {
othervals <- lapply(
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ srv_g_ci <- function(id,
checkmate::assert_class(isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
selector_list <- teal.transform::data_extract_multiple_srv(
data_extract = list(x_var = x_var, y_var = y_var, color = color),
datasets = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_forest_rsp.R
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ srv_g_forest_rsp <- function(id,
checkmate::assert_class(isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
# Setup arm variable selection, default reference arms, and default
# comparison arms for encoding panel
iv_arm_ref <- arm_ref_comp_observer(
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_forest_tte.R
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ srv_g_forest_tte <- function(id,
checkmate::assert_class(isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
# Setup arm variable selection, default reference arms, and default
# comparison arms for encoding panel
iv_arm_ref <- arm_ref_comp_observer(
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_ipp.R
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ srv_g_ipp <- function(id,
checkmate::assert_class(isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
selector_list <- teal.transform::data_extract_multiple_srv(
datasets = data,
data_extract = list(
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_km.R
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ srv_g_km <- function(id,
checkmate::assert_class(isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
# Setup arm variable selection, default reference arms and default
# comparison arms for encoding panel
iv_arm_ref <- arm_ref_comp_observer(
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_lineplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ srv_g_lineplot <- function(id,
checkmate::assert_class(isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
selector_list <- teal.transform::data_extract_multiple_srv(
data_extract = list(x = x, y = y, strata = strata, paramcd = paramcd, y_unit = y_unit, param = param),
datasets = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_pp_adverse_events.R
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ srv_g_adverse_events <- function(id,
checkmate::assert_class(isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
patient_id <- reactive(input$patient_id)

# Init
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_pp_patient_timeline.R
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ srv_g_patient_timeline <- function(id,
checkmate::assert_class(isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
patient_id <- reactive(input$patient_id)

# Init
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_pp_therapy.R
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ srv_g_therapy <- function(id,
checkmate::assert_class(isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
patient_id <- reactive(input$patient_id)

# Init
Expand Down
2 changes: 1 addition & 1 deletion R/tm_g_pp_vitals.R
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ srv_g_vitals <- function(id,
checkmate::assert_class(isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
patient_id <- reactive(input$patient_id)

# Init
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_abnormality.R
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ srv_t_abnormality <- function(id,
checkmate::assert_class(isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
selector_list <- teal.transform::data_extract_multiple_srv(
data_extract = list(
arm_var = arm_var,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_abnormality_by_worst_grade.R
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ srv_t_abnormality_by_worst_grade <- function(id, # nolint: object_length.
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
isolate({
resolved <- teal.transform::resolve_delayed(worst_flag_indicator, as.list(data()@env))
teal.widgets::updateOptionalSelectInput(
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_ancova.R
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ srv_ancova <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
# Setup arm variable selection, default reference arms, and default
# comparison arms for encoding panel.
iv_arco <- arm_ref_comp_observer(
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_binary_outcome.R
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ srv_t_binary_outcome <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
# Setup arm variable selection, default reference arms, and default
# comparison arms for encoding panel
iv_arm_ref <- arm_ref_comp_observer(
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_coxreg.R
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ srv_t_coxreg <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
# Observer to update reference and comparison arm input options.
iv_arm_ref <- arm_ref_comp_observer(
session,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_events.R
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ srv_t_events_byterm <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
selector_list <- teal.transform::data_extract_multiple_srv(
data_extract = list(arm_var = arm_var, hlt = hlt, llt = llt),
datasets = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_events_by_grade.R
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ srv_t_events_by_grade <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
selector_list <- teal.transform::data_extract_multiple_srv(
data_extract = list(arm_var = arm_var, hlt = hlt, llt = llt, grade = grade),
datasets = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_events_patyear.R
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ srv_events_patyear <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
observeEvent(anl_q(), {
data_anl <- merged$anl_q()[["ANL"]]
aval_unit_var <- merged$anl_input_r()$columns_source$avalu_var
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_events_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ srv_t_events_summary <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
data_extract_vars <- list(
arm_var = arm_var, dthfl_var = dthfl_var, dcsreas_var = dcsreas_var,
aeseq_var = aeseq_var, llt = llt
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_exposure.R
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ srv_t_exposure <- function(id,
checkmate::assert_class(data, "reactive")
checkmate::assert_class(shiny::isolate(data()), "teal_data")
moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
rule_intersection <- function(other) {
function(value) {
others <- selector_list()[[other]]()$select
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_logistic.R
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ srv_t_logistic <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
# Observer to update reference and comparison arm input options.
iv_arco <- arm_ref_comp_observer(
session,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_mult_events.R
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ srv_t_mult_events_byterm <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
selector_list <- teal.transform::data_extract_multiple_srv(
data_extract = list(
arm_var = arm_var,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_pp_basic_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ srv_t_basic_info <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
patient_id <- reactive(input$patient_id)

# Init
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_pp_laboratory.R
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ srv_g_laboratory <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
patient_id <- reactive(input$patient_id)

# Init
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_pp_medical_history.R
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ srv_t_medical_history <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
patient_id <- reactive(input$patient_id)

# Init
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_pp_prior_medication.R
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ srv_t_prior_medication <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
patient_id <- reactive(input$patient_id)

selector_list <- teal.transform::data_extract_multiple_srv(
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_shift_by_arm.R
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ srv_shift_by_arm <- function(id,
checkmate::assert_class(data, "reactive")
checkmate::assert_class(shiny::isolate(data()), "teal_data")
moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
selector_list <- teal.transform::data_extract_multiple_srv(
data_extract = list(
arm_var = arm_var,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_shift_by_arm_by_worst.R
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ srv_shift_by_arm_by_worst <- function(id,
checkmate::assert_class(data, "reactive")
checkmate::assert_class(shiny::isolate(data()), "teal_data")
moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
selector_list <- teal.transform::data_extract_multiple_srv(
data_extract = list(
arm_var = arm_var,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_shift_by_grade.R
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ srv_t_shift_by_grade <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
selector_list <- teal.transform::data_extract_multiple_srv(
data_extract = list(
arm_var = arm_var,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_smq.R
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ srv_t_smq <- function(id,
checkmate::assert_class(data, "reactive")
checkmate::assert_class(shiny::isolate(data()), "teal_data")
moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
selector_list <- teal.transform::data_extract_multiple_srv(
data_extract = list(
scopes = scopes,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ srv_summary <- function(id,
checkmate::assert_class(data, "reactive")
checkmate::assert_class(shiny::isolate(data()), "teal_data")
moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
selector_list <- teal.transform::data_extract_multiple_srv(
data_extract = list(arm_var = arm_var, summarize_vars = summarize_vars),
datasets = data,
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_summary_by.R
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ srv_summary_by <- function(id,
checkmate::assert_class(shiny::isolate(data()), "teal_data")

moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
vars <- list(arm_var = arm_var, id_var = id_var, summarize_vars = summarize_vars, by_vars = by_vars)

if (!is.null(paramcd)) {
Expand Down
2 changes: 1 addition & 1 deletion R/tm_t_tte.R
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ srv_t_tte <- function(id,
checkmate::assert_class(data, "reactive")
checkmate::assert_class(shiny::isolate(data()), "teal_data")
moduleServer(id, function(input, output, session) {
tmc_track_shiny_input_changes()
tmc_track_shiny_input_changes(input)
# Setup arm variable selection, default reference arms, and default
# comparison arms for encoding panel
iv_arm_ref <- arm_ref_comp_observer(
Expand Down

0 comments on commit 8c7abd3

Please sign in to comment.