@@ -189,7 +189,6 @@ ui_page_missing_data <- function(id, pre_output = NULL, post_output = NULL) {
189189 encoding = tags $ div(
190190 uiOutput(ns(" dataset_encodings" ))
191191 ),
192- uiOutput(ns(" dataset_reporter" )),
193192 pre_output = pre_output ,
194193 post_output = post_output
195194 )
@@ -248,19 +247,6 @@ srv_page_missing_data <- function(id, data, datanames, parent_dataname,
248247 )
249248 })
250249
251- output $ dataset_reporter <- renderUI({
252- lapply(datanames , function (x ) {
253- dataname_ns <- NS(ns(x ))
254-
255- conditionalPanel(
256- is_tab_active_js(ns(" dataname_tab" ), x ),
257- tagList(
258- teal.widgets :: verbatim_popup_ui(dataname_ns(" rcode" ), " Show R code" )
259- )
260- )
261- })
262- })
263-
264250 result <- sapply(
265251 datanames ,
266252 function (x ) {
@@ -727,7 +713,7 @@ srv_missing_data <- function(id,
727713 # Prepare qenvs for output objects
728714
729715 summary_plot_q <- reactive({
730- req(input $ summary_type == " Summary" ) # needed to trigger show r code update on tab change
716+ req(input $ summary_type == " Summary" ) # needed to trigger update on tab change
731717 teal :: validate_has_data(data_r(), 1 )
732718
733719 qenv <- common_code_q()
@@ -1071,7 +1057,7 @@ srv_missing_data <- function(id,
10711057
10721058 summary_table_q <- reactive({
10731059 req(
1074- input $ summary_type == " By Variable Levels" , # needed to trigger show r code update on tab change
1060+ input $ summary_type == " By Variable Levels" , # needed to trigger update on tab change
10751061 common_code_q()
10761062 )
10771063 teal :: validate_has_data(data_r(), 1 )
@@ -1158,7 +1144,7 @@ srv_missing_data <- function(id,
11581144 })
11591145
11601146 by_subject_plot_q <- reactive({
1161- # needed to trigger show r code update on tab change
1147+ # needed to trigger update on tab change
11621148 req(input $ summary_type == " Grouped by Subject" , common_code_q())
11631149
11641150 teal :: validate_has_data(data_r(), 1 )
@@ -1391,14 +1377,6 @@ srv_missing_data <- function(id,
13911377 }
13921378 })
13931379
1394- # Render R code.
1395- source_code_r <- reactive(teal.code :: get_code(req(decorated_final_q())))
1396-
1397- teal.widgets :: verbatim_popup_srv(
1398- id = " rcode" ,
1399- verbatim_content = source_code_r ,
1400- title = " Show R Code for Missing Data"
1401- )
14021380 decorated_final_q
14031381 })
14041382}
0 commit comments