Skip to content

Commit 53cf1e9

Browse files
authored
1 parent 5d257c5 commit 53cf1e9

File tree

5 files changed

+0
-52
lines changed

5 files changed

+0
-52
lines changed

R/tm_g_gh_boxplot.R

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,6 @@ ui_g_boxplot <- function(id, ...) {
274274
)
275275
)
276276
),
277-
forms = tagList(
278-
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
279-
),
280277
pre_output = a$pre_output,
281278
post_output = a$post_output
282279
)
@@ -526,8 +523,6 @@ srv_g_boxplot <- function(id,
526523
c(create_plot(), create_table())
527524
})
528525

529-
code <- reactive(teal.code::get_code(joined_qenvs()))
530-
531526
# highlight plot area
532527
reactive_df <- debounce(reactive({
533528
boxplot_brush <- boxplot_data$brush()
@@ -560,11 +555,6 @@ srv_g_boxplot <- function(id,
560555
DT::formatRound(numeric_cols, 4)
561556
})
562557

563-
teal.widgets::verbatim_popup_srv(
564-
id = "rcode",
565-
verbatim_content = reactive(code()),
566-
title = "Show R Code for Boxplot"
567-
)
568558
set_chunk_dims(boxplot_data, create_plot)
569559
})
570560
}

R/tm_g_gh_correlationplot.R

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -341,9 +341,6 @@ ui_g_correlationplot <- function(id, ...) {
341341
)
342342
)
343343
),
344-
forms = tagList(
345-
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
346-
),
347344
pre_output = a$pre_output,
348345
post_output = a$post_output
349346
)
@@ -837,8 +834,6 @@ srv_g_correlationplot <- function(id,
837834
brushing = TRUE
838835
)
839836

840-
code <- reactive(teal.code::get_code(plot_q()))
841-
842837
reactive_df <- debounce(reactive({
843838
req(iv_r()$is_valid())
844839
plot_brush <- plot_data$brush()
@@ -864,11 +859,6 @@ srv_g_correlationplot <- function(id,
864859
DT::formatRound(numeric_cols, 4)
865860
})
866861

867-
teal.widgets::verbatim_popup_srv(
868-
id = "rcode",
869-
verbatim_content = reactive(code()),
870-
title = "Show R Code for Correlation Plot"
871-
)
872862
set_chunk_dims(plot_data, plot_q)
873863
})
874864
}

R/tm_g_gh_density_distribution_plot.R

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,6 @@ ui_g_density_distribution_plot <- function(id, ...) {
229229
)
230230
)
231231
),
232-
forms = tagList(
233-
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
234-
),
235232
pre_output = a$pre_output,
236233
post_output = a$post_output
237234
)
@@ -424,14 +421,6 @@ srv_g_density_distribution_plot <- function(id, # nolint
424421
DT::formatRound(numeric_cols, 2)
425422
})
426423

427-
code <- reactive(teal.code::get_code(create_table()))
428-
429-
teal.widgets::verbatim_popup_srv(
430-
id = "rcode",
431-
verbatim_content = reactive(code()),
432-
title = "Show R Code for Density Distribution Plot"
433-
)
434-
435424
create_table
436425
})
437426
}

R/tm_g_gh_lineplot.R

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,6 @@ ui_lineplot <- function(id, ...) {
315315
)
316316
)
317317
),
318-
forms = tagList(
319-
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
320-
),
321318
pre_output = a$pre_output,
322319
post_output = a$post_output
323320
)
@@ -763,14 +760,6 @@ srv_lineplot <- function(id,
763760
width = plot_width,
764761
)
765762

766-
code <- reactive(teal.code::get_code(plot_q()))
767-
768-
teal.widgets::verbatim_popup_srv(
769-
id = "rcode",
770-
verbatim_content = reactive(code()),
771-
title = "Show R Code for Line Plot"
772-
)
773-
774763
set_chunk_dims(plot_data, plot_q)
775764
})
776765
}

R/tm_g_gh_spaghettiplot.R

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,6 @@ g_ui_spaghettiplot <- function(id, ...) {
327327
)
328328
)
329329
),
330-
forms = tagList(
331-
teal.widgets::verbatim_popup_ui(ns("rcode"), "Show R code")
332-
),
333330
pre_output = a$pre_output,
334331
post_output = a$post_output
335332
)
@@ -531,8 +528,6 @@ srv_g_spaghettiplot <- function(id,
531528
)
532529

533530

534-
code <- reactive(teal.code::get_code(plot_q()))
535-
536531
reactive_df <- debounce(reactive({
537532
plot_brush <- plot_data$brush()
538533

@@ -564,11 +559,6 @@ srv_g_spaghettiplot <- function(id,
564559
DT::formatRound(numeric_cols, 4)
565560
})
566561

567-
teal.widgets::verbatim_popup_srv(
568-
id = "rcode",
569-
verbatim_content = reactive(code()),
570-
title = "Show R Code for Spaghetti Plot"
571-
)
572562
set_chunk_dims(plot_data, plot_q)
573563
})
574564
}

0 commit comments

Comments
 (0)