From dmurdoch at pair.com  Thu Nov 27 05:41:48 2003
From: dmurdoch at pair.com (Duncan Murdoch)
Date: Thu Nov 27 05:40:30 2003
Subject: [Rd] Question about Unix file paths
In-Reply-To: <Pine.LNX.4.44.0311261606270.1114-100000@kleigh.nl>
References: <16324.47740.655303.232180@devzero.bogus.domain>
	<Pine.LNX.4.44.0311261606270.1114-100000@kleigh.nl>
Message-ID: <7tvasvcoumn074jpg31pr9enp6nr278dq2@4ax.com>

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


[Rd] Question about Unix file paths
Duncan Murdoch