No, that's not possible at the moment (nor would I anticipate it becoming possible anytime soon).
Here's the NEWS item:
There is a new syntax for specifying raw character constants similar to the one used in C++: r"(...)"
with ...
any character sequence not containing the sequence )"
. This makes it easier to write strings that contain backslashes or both single and double quotes. For more details see ?Quotes
.
https://cran.r-project.org/doc/manuals/r-devel/NEWS.html
Then from ?Quotes
:
Raw character constants are also available using a syntax similar to
the one used in C++: r"(...)"
with ...
any character
sequence, except that it must not contain the closing sequence
)"
. The delimiter pairs []
and {}
can also be
used, and R
can be used in place of r
. For additional
flexibility, a number of dashes can be placed between the opening quote
and the opening delimiter, as long as the same number of dashes appear
between the closing delimiter and the closing quote.
https://github.com/wch/r-source/blob/trunk/src/library/base/man/Quotes.Rd
Here's the (git
mirror of the SVN patch of the) commit where this functionality was added:
https://github.com/wch/r-source/commit/8b0e58041120ddd56cd3bb0442ebc00a3ab67ebc
src/main/gram
), but only in a way that allows forr
orR
to be used before the quote. – Charitycharivari