[Rd] Question about Unix file paths

Duncan Murdoch dmurdoch at pair.com
Mon Nov 24 14:19:59 MET 2003

Thanks Peter and Peter.

On Mon, 24 Nov 2003 13:21:37 +0100 (CET), Peter Kleiweg wrote:

># aldus Duncan Murdoch :
>> In Unix-like systems, is it *always* safe to add a slash between a
>> pathname and a filename?
>Not if the path is empty:
>    '' + '/' + 'file'  -> /file
>is not the same as:
>    '' + 'file'  -> file

That one is not a problem in list.files:  it requires a non-empty

>Doubling of a slash has no effect (at least on Linux and HP-UX)
>unless you are using kpsetools.

I don't know anything about kpsetools.  Is it something that would
affect R users?

Duncan Murdoch

More information about the R-devel mailing list