@@ -536,7 +536,7 @@ srv_g_bivariate <- function(id,
536536 datasets = data
537537 )
538538 qenv <- teal.code :: eval_code(data(),
539- " library(' ggplot2') " )
539+ ' library(" ggplot2");library("dplyr") ' )
540540
541541 anl_merged_q <- reactive({
542542 req(anl_merged_input())
@@ -719,7 +719,8 @@ srv_g_bivariate <- function(id,
719719 )
720720
721721 # Render R code.
722- source_code_r <- reactive(teal.code :: get_code(req(decorated_output_q_facets())))
722+
723+ source_code_r <- reactive(prepare_code(decorated_output_q_facets()))
723724
724725 teal.widgets :: verbatim_popup_srv(
725726 id = " rcode" ,
@@ -1009,15 +1010,15 @@ facet_ggplot_call <- function(row_facet = character(0),
10091010 NULL
10101011 } else if (! identical(row_facet , character (0 )) && ! identical(col_facet , character (0 ))) {
10111012 call(
1012- " facet_grid" ,
1013+ " ggplot2:: facet_grid" ,
10131014 rows = call_fun_dots(" vars" , row_facet ),
10141015 cols = call_fun_dots(" vars" , col_facet ),
10151016 scales = scales
10161017 )
10171018 } else if (identical(row_facet , character (0 )) && ! identical(col_facet , character (0 ))) {
1018- call(" facet_grid" , cols = call_fun_dots(" vars" , col_facet ), scales = scales )
1019+ call(" ggplot2:: facet_grid" , cols = call_fun_dots(" vars" , col_facet ), scales = scales )
10191020 } else if (! identical(row_facet , character (0 )) && identical(col_facet , character (0 ))) {
1020- call(" facet_grid" , rows = call_fun_dots(" vars" , row_facet ), scales = scales )
1021+ call(" ggplot2:: facet_grid" , rows = call_fun_dots(" vars" , row_facet ), scales = scales )
10211022 }
10221023}
10231024
0 commit comments