[Rd] file separator inconsistencies on windows?

Ernest Turro ernest.turro at ic.ac.uk
Mon May 14 13:50:59 CEST 2007


tempdir() on windows returns the path using "\\" as file separator.  
But .Platform$file.sep returns "/". As a result, you get  
inconsistencies like:

 > file.path(tempdir(), "foo")

[1] "C:\\WINDOWS\\Temp\\RtmpYEIXrb/foo" # Mix of \\ and /

I'm not sure if this can cause problems but I thought I'd let you  
know just in case.



More information about the R-devel mailing list