Skip to content

Commit

Permalink
Updated reactivity in CTS.
Browse files Browse the repository at this point in the history
Set the CTS and MB modules to enable reporting by default.
  • Loading branch information
john-harrold committed Oct 16, 2024
1 parent a037f63 commit 2485e09
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
9 changes: 1 addition & 8 deletions R/CTS_Server.R
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,6 @@ CTS_Server <- function(id,
uiele_fpage})
#------------------------------------
output$ui_res_tc_figure = renderUI({
input$element_selection
input$button_clk_runsim
input$switch_output
state = CTS_fetch_state(id = id,
id_ASM = id_ASM,
Expand Down Expand Up @@ -922,7 +920,6 @@ CTS_Server <- function(id,
#------------------------------------
# timecourse plotly
output$ui_res_tc_figure_plotly = plotly::renderPlotly({
req(input$time_scale)
input$element_selection
input$button_clk_runsim
input$button_clk_update_plot
Expand Down Expand Up @@ -958,7 +955,6 @@ CTS_Server <- function(id,
uiele})
# timecourse ggplot
output$ui_res_tc_figure_ggplot = renderPlot({
req(input$time_scale)
input$element_selection
input$button_clk_runsim
input$button_clk_update_plot
Expand Down Expand Up @@ -993,8 +989,6 @@ CTS_Server <- function(id,
#------------------------------------
# Events figure
output$ui_res_events_figure = renderUI({
input$element_selection
input$button_clk_runsim
input$switch_output
state = CTS_fetch_state(id = id,
id_ASM = id_ASM,
Expand Down Expand Up @@ -1603,8 +1597,7 @@ CTS_Server <- function(id,
uiele = tagList(uiele,
tmp_cov,": ", tmp_details, tags$br())
}
uiele = tagList(tags$h3(state[["MC"]][["labels"]][["covariate_values"]]),
uiele)
uiele = tagList(tags$h3(state[["MC"]][["labels"]][["covariate_values"]]), uiele)
}
uiele })
#------------------------------------
Expand Down
1 change: 0 additions & 1 deletion R/MB_Server.R
Original file line number Diff line number Diff line change
Expand Up @@ -1914,7 +1914,6 @@ MB_append_report = function(state, rpt, rpttype, gen_code_only=FALSE){
code = c()
msgs = c()


# The MB module only supports the following report types:
supported_rpttypes = c("docx")

Expand Down
2 changes: 1 addition & 1 deletion inst/templates/CTS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ MC:
# This is where you put reporting options. The expected options are shown
# here, but module-specific options can also be added if needed:
reporting:
enabled: FALSE
enabled: TRUE
# Priority of reporting relative to other modules
# (higher numbers are reported first)
priority: 2
Expand Down
2 changes: 1 addition & 1 deletion inst/templates/MB.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ MC:
# This is where you put reporting options. The expected options are shown
# here, but module-specific options can also be added if needed:
reporting:
enabled: FALSE
enabled: TRUE
# Priority of reporting relative to other modules
# (higher numbers are reported first)
priority: 1
Expand Down

0 comments on commit 2485e09

Please sign in to comment.