glue::glue() to remove glue class.gum.Rdglue provides string interpolation similar to Python's F-strings, but returned values
inherit the glue class. This seems to cause unexpected results in certain environments,
e.g. base::cat().
gum(..., .envir = parent.frame())
| ... |
|
|---|---|
| .envir |
|
character
library(salinasr) my_name <- "Brendan" my_lang <- "R" gum("My name is {my_name} and I am using {my_lang}.")#> [1] "My name is Brendan and I am using R."