Skip to content
Prev 60036 / 398502 Next

escaping backslash in a string

Dan Lipsitt <danlipsitt at gmail.com> writes:
Nononononono.... If you want to know what is inside a string, use
cat() not (implicitly) print()
\.>

The thing is that print() itself escapes "weird" characters, including
the escape character:
\.
[1] "\\."
Yes. Not at all.