Consider using doubling for escaping in .literal = TRUE
#259
Labels
feature
a feature request or enhancement
.literal = TRUE
#259
I am wondering if
.literal = TRUE
should still allow double delimiters for escaping. I.e. this currently fails:and AFAICT there is no easy way of writing a (non well formed) literal brace in a glue string, apart from using substitution:
As you might suspect this affects cli, because cli uses doubling as escaping currently, so it cannot switch to
.literal = TRUE
. On the other hand.literal = TRUE
would be much better for the cases when people include literal quotes in the string, e.g. r-lib/cli#370If doubling is still accepted for escaping, then
.literal = TRUE
does not break cli, and I think it is also beneficial in general to be able to escape the delimiter.The text was updated successfully, but these errors were encountered: