? backslash was Re: [R] Editor alternative
murdoch at stats.uwo.ca
Wed Sep 13 15:32:46 CEST 2000
>> In that case you don't need to double the backslash. If you're
>> reading character data from a file, R won't treat the backslashes as
>> escape characters. It's only the parser that does that.
>> Duncan Murdoch
>I'm not sure I understand what you mean in your last phrase.
If you're reading data using scan() or read.table() (or whatever
low-level functions those use), then you don't need to double the
backslash in the datafile. This means it's easy to read in a long
list of pathnames from a file.
On the other hand, if the backslash appears in R code (which you type
at the command line, or use source() to read), then it passes through
the parser, and the backslash is treated as an escape character.
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
More information about the R-help