@@ -381,9 +381,6 @@ ui_g_distribution.default <- function(id, ...) {
381381 )
382382 )
383383 ),
384- forms = tagList(
385- teal.widgets :: verbatim_popup_ui(ns(" rcode" ), " Show R code" )
386- ),
387384 pre_output = args $ pre_output ,
388385 post_output = args $ post_output
389386 )
@@ -1276,13 +1273,13 @@ srv_g_distribution.default <- function(id,
12761273 output_dist_q <- reactive(c(common_q(), req(dist_q())))
12771274 output_qq_q <- reactive(c(common_q(), req(qq_q())))
12781275
1279- # Summary table listing has to be created separately to allow for qenv join
1280- q_common <- common_q()
1281- teal.reporter :: teal_card(q_common ) <- c(
1282- teal.reporter :: teal_card(q_common ),
1283- " ## Statistics table"
1284- )
12851276 output_summary_q <- reactive({
1277+ # Summary table listing has to be created separately to allow for qenv join
1278+ q_common <- common_q()
1279+ teal.reporter :: teal_card(q_common ) <- c(
1280+ teal.reporter :: teal_card(q_common ),
1281+ " ## Statistics table"
1282+ )
12861283 if (iv_r()$ is_valid()) {
12871284 within(q_common , {
12881285 summary_table <- rtables :: df_to_tt(summary_table_data )
@@ -1362,7 +1359,7 @@ srv_g_distribution.default <- function(id,
13621359 output $ summary_table <- DT :: renderDataTable(summary_r())
13631360
13641361 tests_r <- reactive({
1365- q <- req(output_test_q ())
1362+ q <- req(decorated_output_test_q ())
13661363 DT :: datatable(q [[" test_table_data" ]])
13671364 })
13681365
@@ -1388,7 +1385,7 @@ srv_g_distribution.default <- function(id,
13881385
13891386 decorated_output_q <- reactive({
13901387 tab <- req(input $ tabs ) # tab is NULL upon app launch, hence will crash without this statement
1391- test_q_out <- output_test_q ()
1388+ test_q_out <- decorated_output_test_q ()
13921389
13931390 out_q <- switch (tab ,
13941391 Histogram = decorated_output_dist_dims_q(),
@@ -1406,14 +1403,6 @@ srv_g_distribution.default <- function(id,
14061403
14071404 output $ t_stats <- DT :: renderDataTable(tests_r())
14081405
1409- # Render R code.
1410- source_code_r <- reactive(teal.code :: get_code(req(decorated_output_q())))
1411-
1412- teal.widgets :: verbatim_popup_srv(
1413- id = " rcode" ,
1414- verbatim_content = source_code_r ,
1415- title = " R Code for distribution"
1416- )
14171406 decorated_output_q
14181407 })
14191408}
0 commit comments