Re: [R] How to disable character escaping ?

2008-09-03 Thread Leon Yee
Thank you, Professor Ripley. It is exactly what I need. Best wishes! Leon Prof Brian Ripley wrote: By reading from a file or connection, as in foo - scan(, , n=1) c:\tmp\foo The parser always interprets \ in strings, so you must avoid the parser.

[R] How to disable character escaping ?

2008-09-01 Thread Leon Yee
Dear all, I have a string (a file path in windows system) contains several \s. When I copy and paste it into R for assignment to an variable, the \s are always interpreted as escaping characters. How can I keep it intact? Thanks. Regards, Leon

Re: [R] How to disable character escaping ?

2008-09-01 Thread Prof Brian Ripley
On Tue, 2 Sep 2008, Leon Yee wrote: Dear all, I have a string (a file path in windows system) contains several \s. When I copy and paste it into R for assignment to an variable, the \s are always interpreted as escaping characters. How can I keep it intact? By reading from a file or