Skip to content

Commit

Permalink
Prefer glue_data() when data might be list-ish, not an actual environ…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
jennybc committed Dec 21, 2023
1 parent c51efee commit 4683f20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,7 @@ odin_file <- function(...) {


glue_whisker <- function(template, data) {
glue::glue(template, .envir = data, .open = "{{", .close = "}}",
.trim = FALSE)
glue::glue_data(data, template, .open = "{{", .close = "}}", .trim = FALSE)
}


Expand Down

0 comments on commit 4683f20

Please sign in to comment.