Skip to content

Commit aa3fc3c

Browse files
committed
Add more library calls
1 parent 4c58fe5 commit aa3fc3c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

R/tm_g_distribution.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ srv_distribution <- function(id,
663663
"Group by variable must be `factor`, `character`, or `integer`"
664664
)
665665
)
666+
qenv <- teal.code::eval_code(qenv, 'library("forcats")') # nolint quotes
666667
qenv <- teal.code::eval_code(
667668
qenv,
668669
substitute(
@@ -679,6 +680,8 @@ srv_distribution <- function(id,
679680
"Stratify by variable must be `factor`, `character`, or `integer`"
680681
)
681682
)
683+
684+
qenv <- teal.code::eval_code(qenv, 'library("forcats")') # nolint quotes
682685
qenv <- teal.code::eval_code(
683686
qenv,
684687
substitute(
@@ -1226,6 +1229,7 @@ srv_distribution <- function(id,
12261229
qenv <- common_q()
12271230

12281231
if (length(s_var) == 0 && length(g_var) == 0) {
1232+
qenv <- teal.code::eval_code(qenv, 'library("generics")') # nolint quotes
12291233
qenv <- teal.code::eval_code(
12301234
qenv,
12311235
substitute(
@@ -1239,6 +1243,7 @@ srv_distribution <- function(id,
12391243
)
12401244
)
12411245
} else {
1246+
qenv <- teal.code::eval_code(qenv, 'library("tidyr")') # nolint quotes
12421247
qenv <- teal.code::eval_code(
12431248
qenv,
12441249
substitute(

0 commit comments

Comments
 (0)