R/quoting.R
These functions make it easy to quote each individual element and are useful
in conjunction with collapse()
.
single_quote(x) double_quote(x) backtick(x)
x | A character to quote. |
---|
x <- 1:5 glue('Values of x: {collapse(backtick(x), sep = ", ", last = " and ")}')#> Error in UseMethod("collapse"): no applicable method for 'collapse' applied to an object of class "character"