Skip to content

Commit

Permalink
draft function
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand committed Oct 7, 2024
1 parent 6e5e4c3 commit df2a36c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions R/label-glue.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

label_glue <- function(pattern = "{x}", ..., .envir = caller_env()) {
args <- list2(...)
force_all(pattern, .envir)
function(x) {
inject(glue::glue_data(list(x = x), pattern, !!!args, .envir = .envir))
}
}

0 comments on commit df2a36c

Please sign in to comment.