Gabor Grothendieck <ggrothendieck <at> gmail.com> writes: > > R interprets backslash to give special meaning to the next character, i.e. > it strips off the backslash and send the following character to gsub > possibly reinterpreting it specially (for example \n is newline). Thus > a backslash will never get to gsub unless you use a double backslash.
To quote Peter Dalgaard: "The generic rule for backslashes is that you need twice as many as you thought" Only make sure that you have the right stopping rule for recursive evaluation of that. Dieter ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.