[Rd] Question about Unix file paths

Duncan Murdoch dmurdoch at pair.com
Thu Nov 27 05:41:48 MET 2003

On Wed, 26 Nov 2003 16:09:34 +0100 (CET), you wrote:

># aldus John W. Eaton :
>> It seems to me that using this approach to implement a proper glob()
>> function would be more work than using the glob code that is available
>> as part of bash, which I think will allow you to handle much more
>> complex patterns, including [xyz] {a,b,c} etc.
>Unix people don't need a glob function in R. But a simple glob,
>with just '*' and '?', may be all that an average Windows user
>can handle, and useful to them.

We already have that, in choose.files().  It's interactive; maybe it
should have a non-interactive option.

I don't think we should add another pattern matching syntax to R.
Filename pattern matching is a job for the shell or the OS.

Duncan Murdoch

More information about the R-devel mailing list