Possible Duplicate:
Ignore escape characters (backslashes) in R strings
I want to replace "\" in a string by "/" in a string. For example, the initial string is "d:\temp\1.txt" and I want to have "d:/temp/1.txt". I tried with gsub
but it is not working as I want. However, if I do a simpler exercise
> gsub("a", "b", "banana")
[1] "bbnbnb"
It is working fine. Are there some tricks working with the special characters "/" and "\"?