Displaying 1 result from an estimated 1 matches for "dir1dir2fil".
Did you mean:
dir1dir2file
2005 Jan 19
4
How to replace slashes with back slashes
...will be read by some other software we use. Unfortunately, it can only handle file paths with back slashes (MS Windows convention), and from R, I get file paths with forward slashes. The following didn't work.
> gsub('/', '\\', 'c:/dir1/dir2/file.ext')
[1] "c:dir1dir2file.ext"
> gsub('/', '\\\\', 'c:/dir1/dir2/file.ext')
[1] "c:\\dir1\\dir2\\file.ext"
I have tried to find an answer on R-help, but didn't ;-(
Thanks for helping me,
Kind regards,
J?rg
Dr. J?rg Klausen phone : +41 (0)44 823 41 27
EM...