search for: dsff

Displaying 1 result from an estimated 1 matches for "dsff".

Did you mean: diff
2011 May 05
1
Using GSUB to obtain a printing "\"
...ng (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 would like to see: dsff\nfsd? (which is the output of message("dsff\\nfsd") ) I don't know why gsub doesn't accomplish this substitution. How can I replace (for example), a "\" with "\\"? Any suggestions would be greatly appreciat...