Skip to content

Commit

Permalink
use log_shiny_input_changes from teal.logger
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Jun 18, 2024
1 parent f31037f commit 196fa96
Show file tree
Hide file tree
Showing 38 changed files with 50 additions and 68 deletions.
2 changes: 1 addition & 1 deletion R/tm_a_gee.R
Original file line number Diff line number Diff line change
Expand Up @@ -584,6 +584,6 @@ srv_gee <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
5 changes: 2 additions & 3 deletions R/tm_a_mmrm.R
Original file line number Diff line number Diff line change
Expand Up @@ -1419,9 +1419,8 @@ srv_mmrm <- function(id,
)
})

plot_id <- "mmrm_plot"
pws <- teal.widgets::plot_with_settings_srv(
id = plot_id,
id = "mmrm_plot",
plot_r = plot_r,
height = plot_height,
width = plot_width,
Expand Down Expand Up @@ -1473,6 +1472,6 @@ srv_mmrm <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input, plot_id)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
5 changes: 2 additions & 3 deletions R/tm_g_barchart_simple.R
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,8 @@ srv_g_barchart_simple <- function(id,
}

# Insert the plot into a plot with settings module from teal.widgets
plot_id <- "myplot"
pws <- teal.widgets::plot_with_settings_srv(
id = plot_id,
id = "myplot",
plot_r = plot_r,
height = plot_height,
width = plot_width
Expand Down Expand Up @@ -569,7 +568,7 @@ srv_g_barchart_simple <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input, plot_id)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical", excluded_patterns = "_width$")

Check warning on line 571 in R/tm_g_barchart_simple.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_barchart_simple.R,line=571,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 125 characters.
})
}

Expand Down
5 changes: 2 additions & 3 deletions R/tm_g_ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,8 @@ srv_g_ci <- function(id,
title = label
)

plot_id <- "myplot"
pws <- teal.widgets::plot_with_settings_srv(
id = plot_id,
id = "myplot",
plot_r = plot_r,
height = plot_height,
width = plot_width
Expand Down Expand Up @@ -502,6 +501,6 @@ srv_g_ci <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input, plot_id)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical", excluded_patterns = "_width$")

Check warning on line 504 in R/tm_g_ci.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_ci.R,line=504,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 125 characters.
})
}
5 changes: 2 additions & 3 deletions R/tm_g_forest_rsp.R
Original file line number Diff line number Diff line change
Expand Up @@ -732,9 +732,8 @@ srv_g_forest_rsp <- function(id,

plot_r <- reactive(all_q()[["p"]])

plot_id <- "myplot"
pws <- teal.widgets::plot_with_settings_srv(
id = plot_id,
id = "myplot",
plot_r = plot_r,
height = plot_height,
width = plot_width
Expand Down Expand Up @@ -767,6 +766,6 @@ srv_g_forest_rsp <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input, plot_id)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical", excluded_patterns = "_width$")

Check warning on line 769 in R/tm_g_forest_rsp.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_forest_rsp.R,line=769,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 125 characters.
})
}
5 changes: 2 additions & 3 deletions R/tm_g_forest_tte.R
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,8 @@ srv_g_forest_tte <- function(id,
# Outputs to render.
plot_r <- reactive(all_q()[["p"]])

plot_id <- "myplot"
pws <- teal.widgets::plot_with_settings_srv(
id = plot_id,
id = "myplot",
plot_r = plot_r,
height = plot_height,
width = plot_width
Expand Down Expand Up @@ -692,6 +691,6 @@ srv_g_forest_tte <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input, plot_id)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical", excluded_patterns = "_width$")

Check warning on line 694 in R/tm_g_forest_tte.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_forest_tte.R,line=694,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 125 characters.
})
}
5 changes: 2 additions & 3 deletions R/tm_g_ipp.R
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,8 @@ srv_g_ipp <- function(id,
plot_r <- reactive(all_q()[["plot"]])

# Insert the plot into a plot with settings module from teal.widgets
plot_id <- "myplot"
pws <- teal.widgets::plot_with_settings_srv(
id = plot_id,
id = "myplot",
plot_r = plot_r,
height = plot_height,
width = plot_width
Expand Down Expand Up @@ -644,6 +643,6 @@ srv_g_ipp <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input, plot_id)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical", excluded_patterns = "_width$")

Check warning on line 646 in R/tm_g_ipp.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_ipp.R,line=646,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 125 characters.
})
}
5 changes: 2 additions & 3 deletions R/tm_g_km.R
Original file line number Diff line number Diff line change
Expand Up @@ -806,9 +806,8 @@ srv_g_km <- function(id,
plot_r <- reactive(all_q()[["plot"]])

# Insert the plot into a plot with settings module from teal.widgets
plot_id <- "myplot"
pws <- teal.widgets::plot_with_settings_srv(
id = plot_id,
id = "myplot",
plot_r = plot_r,
height = plot_height,
width = plot_width
Expand Down Expand Up @@ -842,6 +841,6 @@ srv_g_km <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input, plot_id)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical", excluded_patterns = "_width$")

Check warning on line 844 in R/tm_g_km.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_km.R,line=844,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 125 characters.
})
}
5 changes: 2 additions & 3 deletions R/tm_g_lineplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -626,9 +626,8 @@ srv_g_lineplot <- function(id,
plot_r <- reactive(all_q()[["plot"]])

# Insert the plot into a plot with settings module from teal.widgets
plot_id <- "myplot"
pws <- teal.widgets::plot_with_settings_srv(
id = plot_id,
id = "myplot",
plot_r = plot_r,
height = plot_height,
width = plot_width
Expand Down Expand Up @@ -661,6 +660,6 @@ srv_g_lineplot <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input, plot_id)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical", excluded_patterns = "_width$")

Check warning on line 663 in R/tm_g_lineplot.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_lineplot.R,line=663,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 125 characters.
})
}
5 changes: 2 additions & 3 deletions R/tm_g_pp_adverse_events.R
Original file line number Diff line number Diff line change
Expand Up @@ -563,9 +563,8 @@ srv_g_adverse_events <- function(id,
all_q()[["plot"]]
})

plot_id <- "chart"
pws <- teal.widgets::plot_with_settings_srv(
id = plot_id,
id = "chart",
plot_r = plot_r,
height = plot_height,
width = plot_width
Expand Down Expand Up @@ -600,6 +599,6 @@ srv_g_adverse_events <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input, plot_id)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical", excluded_patterns = "_width$")

Check warning on line 602 in R/tm_g_pp_adverse_events.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_pp_adverse_events.R,line=602,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 125 characters.
})
}
5 changes: 2 additions & 3 deletions R/tm_g_pp_patient_timeline.R
Original file line number Diff line number Diff line change
Expand Up @@ -904,9 +904,8 @@ srv_g_patient_timeline <- function(id,

plot_r <- reactive(all_q()[["patient_timeline_plot"]])

plot_id <- "patient_timeline_plot"
pws <- teal.widgets::plot_with_settings_srv(
id = plot_id,
id = "patient_timeline_plot",
plot_r = plot_r,
height = plot_height,
width = plot_width
Expand Down Expand Up @@ -939,6 +938,6 @@ srv_g_patient_timeline <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input, plot_id)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical", excluded_patterns = "_width$")

Check warning on line 941 in R/tm_g_pp_patient_timeline.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_pp_patient_timeline.R,line=941,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 125 characters.
})
}
5 changes: 2 additions & 3 deletions R/tm_g_pp_therapy.R
Original file line number Diff line number Diff line change
Expand Up @@ -683,9 +683,8 @@ srv_g_therapy <- function(id,
all_q()[["therapy_plot"]]
})

plot_id <- "therapy_plot"
pws <- teal.widgets::plot_with_settings_srv(
id = plot_id,
id = "therapy_plot",
plot_r = plot_r,
height = plot_height,
width = plot_width
Expand Down Expand Up @@ -720,6 +719,6 @@ srv_g_therapy <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input, plot_id)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical", excluded_patterns = "_width$")

Check warning on line 722 in R/tm_g_pp_therapy.R

View workflow job for this annotation

GitHub Actions / SuperLinter 🦸‍♀️ / Lint R code 🧶

file=R/tm_g_pp_therapy.R,line=722,col=121,[line_length_linter] Lines should not be more than 120 characters. This line is 125 characters.
})
}
5 changes: 2 additions & 3 deletions R/tm_g_pp_vitals.R
Original file line number Diff line number Diff line change
Expand Up @@ -549,9 +549,8 @@ srv_g_vitals <- function(id,

plot_r <- reactive(all_q()[["result_plot"]])

plot_id <- "vitals_plot"
pws <- teal.widgets::plot_with_settings_srv(
id = plot_id,
id = "vitals_plot",
plot_r = plot_r,
height = plot_height,
width = plot_width
Expand Down Expand Up @@ -584,6 +583,6 @@ srv_g_vitals <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input, plot_id)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical", excluded_patterns = "_width$")
})
}
2 changes: 1 addition & 1 deletion R/tm_t_abnormality.R
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,6 @@ srv_t_abnormality <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
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 @@ -695,6 +695,6 @@ srv_t_abnormality_by_worst_grade <- function(id, # nolint: object_length.
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
2 changes: 1 addition & 1 deletion R/tm_t_ancova.R
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,6 @@ srv_ancova <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
2 changes: 1 addition & 1 deletion R/tm_t_binary_outcome.R
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,6 @@ srv_t_binary_outcome <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
2 changes: 1 addition & 1 deletion R/tm_t_coxreg.R
Original file line number Diff line number Diff line change
Expand Up @@ -1102,6 +1102,6 @@ srv_t_coxreg <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
2 changes: 1 addition & 1 deletion R/tm_t_events.R
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,6 @@ srv_t_events_byterm <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
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 @@ -1236,6 +1236,6 @@ srv_t_events_by_grade <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
2 changes: 1 addition & 1 deletion R/tm_t_events_patyear.R
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,6 @@ srv_events_patyear <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
2 changes: 1 addition & 1 deletion R/tm_t_events_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,6 @@ srv_t_events_summary <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
2 changes: 1 addition & 1 deletion R/tm_t_exposure.R
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,6 @@ srv_t_exposure <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
2 changes: 1 addition & 1 deletion R/tm_t_logistic.R
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,6 @@ srv_t_logistic <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
2 changes: 1 addition & 1 deletion R/tm_t_mult_events.R
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,6 @@ srv_t_mult_events_byterm <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
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 @@ -296,6 +296,6 @@ srv_t_basic_info <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
2 changes: 1 addition & 1 deletion R/tm_t_pp_laboratory.R
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,6 @@ srv_g_laboratory <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
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 @@ -363,6 +363,6 @@ srv_t_medical_history <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
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 @@ -363,6 +363,6 @@ srv_t_prior_medication <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
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 @@ -591,6 +591,6 @@ srv_shift_by_arm <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
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 @@ -626,6 +626,6 @@ srv_shift_by_arm_by_worst <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
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 @@ -896,6 +896,6 @@ srv_t_shift_by_grade <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
2 changes: 1 addition & 1 deletion R/tm_t_smq.R
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,6 @@ srv_t_smq <- function(id,
teal.reporter::simple_reporter_srv("simple_reporter", reporter = reporter, card_fun = card_fun)
}
###
track_shiny_input_changes(input)
log_shiny_input_changes(input, level = logger::TRACE, namespace = "teal.modules.clinical")
})
}
Loading

0 comments on commit 196fa96

Please sign in to comment.