Using glue inside of another function The key is defining an environment! test_glue <- function(cmd, e = parent.frame()) { crayon::red(glue::glue(cmd, .envir = e)) } test_fxn <- function (name) { cat(test_glue("hello, {name}")) } test_fxn("Joleen")