Skip to content
Prev 5559 / 15076 Next

Path separator issues in OSX 10.5

On Jan 21, 2009, at 13:15 , Ben Tupper wrote:

            
Why should it? The colon is part of the name - the name of your  
directory is "Shared:code" so the proper use of file.path is
 > file.path("/Users","Shared","Shared:Code","Shared:code:R")
[1] "/Users/Shared/Shared:Code/Shared:code:R"

BTW: I suspect you are not quite aware of what you're doing in your  
Finder - you're creating files/directories that have a slash in their  
name which the Finder re-maps to colons. This has nothing to do with R  
- it's a historic work-around in the Finder from times when / was  
valid in file names in OS 9 and I suspect you didn't really mean to  
create those files/directories that way...

Cheers,
S