Skip to content

Commit c296936

Browse files
committed
Split evaluation to load libraries
1 parent 1159a49 commit c296936

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

R/tm_g_bivariate.R

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -562,13 +562,9 @@ srv_g_bivariate <- function(id,
562562
teal.reporter::teal_card(obj),
563563
teal.reporter::teal_card("## Module's code")
564564
)
565-
obj %>%
566-
teal.code::eval_code(
567-
c(
568-
'library("ggplot2");library("dplyr")', # nolint: quotes_lintr
569-
as.expression(anl_merged_input()$expr)
570-
)
571-
)
565+
obj |>
566+
teal.code::eval_code('library("ggplot2");library("dplyr")') |> # nolint: quotes_lintr
567+
teal.code::eval_code(as.expression(anl_merged_input()$expr))
572568
})
573569

574570
merged <- list(

0 commit comments

Comments
 (0)