Skip to content

Commit e6db72d

Browse files
committed
ensure list2() can be found
1 parent d488de8 commit e6db72d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R/boilerplates.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,8 @@ boilerplate.Geom <- function(x, ..., checks = NULL, env = caller_env()) {
118118
body <- call2("{", !!!checks, body)
119119
}
120120

121-
new_function(fmls, body, env = caller_env())
121+
# We encapsulate rlang::list2
122+
new_env <- new_environment(list(list2 = list2), env)
123+
124+
new_function(fmls, body, env = new_env)
122125
}

0 commit comments

Comments
 (0)