Skip to content

Commit c1b80b2

Browse files
committed
simplify libraries call in tm_outliers
1 parent bbd932a commit c1b80b2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

R/tm_outliers.R

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -456,11 +456,8 @@ srv_outliers <- function(id, data, outlier_var,
456456
req(anl_merged_input())
457457
teal.code::eval_code(
458458
data_obj(),
459-
paste0(
460-
'library("dplyr");library("tidyr");', # nolint: quotes.
461-
'library("tibble");library("ggplot2");'
462-
)
463-
) %>% # nolint: quotes.
459+
expression(library("dplyr"), library("tidyr"), library("tibble"), library("ggplot2"))
460+
) %>%
464461
teal.code::eval_code(as.expression(anl_merged_input()$expr))
465462
})
466463

0 commit comments

Comments
 (0)