[R] How to convert backslash to slash?

Duncan Murdoch murdoch at stats.uwo.ca
Wed Sep 24 17:19:38 CEST 2008


On 24/09/2008 10:53 AM, hadley wickham wrote:
>> I agree that that some sort of facility would be convenient.  Creating
>> latex output is
>> another situation where not having to escape backslashes would be convenient.
> 
> And regular expressions, of course.

There were proposals to do this last year (I think you participated in 
the discussion), but there was no agreement on how to do it.  One was 
triple quotes as in Python, e.g.

'''c:\foo\bar'''

and another was some variation on heredocs from several languages, or 
\verb from TeX.

Duncan Murdoch



More information about the R-help mailing list