Displaying 1 result from an estimated 1 matches for "nuvxyz".
Did you mean:
auvxz
2011 May 05
1
Using GSUB to obtain a printing "\"
Hello. I'd like to be able to print variable strings which contain "\" as-is, without interpreting (for example) "abcde\nuvxyz" as having an embedded newline (or whatever other escaped instruction).
To do this, I've tried gsub, and here's some of my output (I've tried all kinds of variations to the arguments):
> message(gsub("[\\]","\\\\","dsff\nfsd"))
dsff
fsd
but I w...