Skip to content
Prev 156997 / 398506 Next

How to convert backslash to slash?

On Wed, 24 Sep 2008, jim holtman wrote:

            
Great! Thanks. By the way, it would be nice if R have a third way to quote 
a string and automatically escape the backslashes in memory. For instance:

#not run now
s<- `C:\Acer'

print(s)
[1] "C:\\Acer"