Skip to content

Commit

Permalink
ensure list2() can be found
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Oct 21, 2024
1 parent d488de8 commit e6db72d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/boilerplates.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,8 @@ boilerplate.Geom <- function(x, ..., checks = NULL, env = caller_env()) {
body <- call2("{", !!!checks, body)

Check warning on line 118 in R/boilerplates.R

View check run for this annotation

Codecov / codecov/patch

R/boilerplates.R#L118

Added line #L118 was not covered by tests
}

new_function(fmls, body, env = caller_env())
# We encapsulate rlang::list2
new_env <- new_environment(list(list2 = list2), env)

Check warning on line 122 in R/boilerplates.R

View check run for this annotation

Codecov / codecov/patch

R/boilerplates.R#L122

Added line #L122 was not covered by tests

new_function(fmls, body, env = new_env)

Check warning on line 124 in R/boilerplates.R

View check run for this annotation

Codecov / codecov/patch

R/boilerplates.R#L124

Added line #L124 was not covered by tests
}

0 comments on commit e6db72d

Please sign in to comment.