Skip to content

Commit

Permalink
Actually check that .envir is an environment
Browse files Browse the repository at this point in the history
The return of the fix for #308
  • Loading branch information
jennybc committed Jan 10, 2024
1 parent 7aa50e6 commit 963ea6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/glue.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ glue_data <- function(.x, ..., .sep = "", .envir = parent.frame(),

# Perform all evaluations in a temporary environment
if (is.null(.x)) {
stopifnot(is.environment(.envir))
parent_env <- .envir
} else if (is.environment(.x)) {
parent_env <- .x
Expand Down

0 comments on commit 963ea6a

Please sign in to comment.