@@ -253,9 +253,6 @@ ui_g_butterfly <- function(id, ...) {
253253 value = a $ legend_on
254254 )
255255 ),
256- forms = tagList(
257- teal.widgets :: verbatim_popup_ui(ns(" rcode" ), " Show R code" )
258- ),
259256 pre_output = a $ pre_output ,
260257 post_output = a $ post_output
261258 )
@@ -471,16 +468,22 @@ srv_g_butterfly <- function(id, data, dataname, label, plot_height, plot_width)
471468 teal.reporter :: teal_card(q1 ) <- c(teal.reporter :: teal_card(q1 ), " ### Selected Options" )
472469 }
473470 if (! is.null(input $ filter_var )) {
474- teal.reporter :: teal_card(q1 ) <-
475- c(teal.reporter :: teal_card(q1 ), paste0(" Preset Data Filters: " , paste(input $ filter_var , collapse = " , " ), " ." ))
471+ teal.reporter :: teal_card(q1 ) <- c(
472+ teal.reporter :: teal_card(q1 ),
473+ sprintf(" Preset Data Filters: %s." , paste(input $ filter_var , collapse = " , " ))
474+ )
476475 }
477476 if (! is.null(input $ facet_var )) {
478- teal.reporter :: teal_card(q1 ) <-
479- c(teal.reporter :: teal_card(q1 ), paste0(" Faceted by: " , paste(input $ facet_var , collapse = " , " ), " ." ))
477+ teal.reporter :: teal_card(q1 ) <- c(
478+ teal.reporter :: teal_card(q1 ),
479+ sprintf(" Faceted by: %s." , paste(input $ facet_var , collapse = " , " ))
480+ )
480481 }
481482 if (! is.null(input $ sort_by_var )) {
482- teal.reporter :: teal_card(q1 ) <-
483- c(teal.reporter :: teal_card(q1 ), paste0(" Sorted by: " , paste(input $ sort_by_var , collapse = " , " ), " ." ))
483+ teal.reporter :: teal_card(q1 ) <- c(
484+ teal.reporter :: teal_card(q1 ),
485+ sprintf(" Sorted by: %s." , paste(input $ sort_by_var , collapse = " , " ))
486+ )
484487 }
485488
486489 if (! is.null(right_val ) && ! is.null(left_val )) {
@@ -528,11 +531,6 @@ srv_g_butterfly <- function(id, data, dataname, label, plot_height, plot_width)
528531 width = plot_width
529532 )
530533
531- teal.widgets :: verbatim_popup_srv(
532- id = " rcode" ,
533- title = paste(" R code for" , label ),
534- verbatim_content = reactive(teal.code :: get_code(output_q()))
535- )
536534 set_chunk_dims(pws , output_q )
537535 })
538536}
0 commit comments