Skip to content

Instantly share code, notes, and snippets.

@alekrutkowski
Created October 9, 2022 08:32
Show Gist options
  • Save alekrutkowski/09a74f40fca90bc503af6ea0c0e2162e to your computer and use it in GitHub Desktop.
Save alekrutkowski/09a74f40fca90bc503af6ea0c0e2162e to your computer and use it in GitHub Desktop.
Recursive `glue::glue`
# Recursive `glue::glue` based on
# https://github.com/SuperMayo/gonfig/blob/master/R/glue.R
# but simplified
rglue <- function(string, ...) {
glued <- glue::glue(string, ...)
if (glued==string) glued else rglue(glued, ...)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment