Skip to content

Commit 7d8c801

Browse files
committed
Only add ggpp when needed
1 parent 2f14efb commit 7d8c801

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/tm_g_distribution.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ srv_distribution <- function(id,
681681
)
682682
)
683683

684-
qenv <- teal.code::eval_code(qenv, 'library("forcats");library("ggpp")') # nolint quotes
684+
qenv <- teal.code::eval_code(qenv, 'library("forcats")') # nolint quotes
685685
qenv <- teal.code::eval_code(
686686
qenv,
687687
substitute(
@@ -891,6 +891,7 @@ srv_distribution <- function(id,
891891
}
892892

893893
if (length(t_dist) != 0 && main_type_var == "Density" && length(g_var) == 0 && length(s_var) == 0) {
894+
qenv <- teal.code::eval_code(qenv, 'library("ggpp")') # nolint quotes
894895
qenv <- teal.code::eval_code(
895896
qenv,
896897
substitute(
@@ -1035,6 +1036,7 @@ srv_distribution <- function(id,
10351036
)
10361037

10371038
if (length(t_dist) != 0 && length(g_var) == 0 && length(s_var) == 0) {
1039+
qenv <- teal.code::eval_code(qenv, 'library("ggpp")') # nolint quotes
10381040
qenv <- teal.code::eval_code(
10391041
qenv,
10401042
substitute(

0 commit comments

Comments
 (0)