From sfalcon at fhcrc.org  Sat Aug 20 17:51:11 2005
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Sat, 20 Aug 2005 08:51:11 -0700
Subject: [Rd] Questions on "\" vs "/" on Windows
In-Reply-To: <Pine.LNX.4.61.0508201537520.5575@gannet.stats> (Brian Ripley's
	message of "Sat, 20 Aug 2005 15:54:45 +0100 (BST)")
References: <m2hddkhfb9.fsf@fhcrc.org>
	<Pine.LNX.4.61.0508201537520.5575@gannet.stats>
Message-ID: <m27jeghaj4.fsf@fhcrc.org>

On 20 Aug 2005, ripley at stats.ox.ac.uk wrote:
> It _does_ dynamically read .Platform$file.sep, and it has an fsep
> argument so you can do
>
> file.path("foo", "bar", fsep="\\")
>
> Beware though of namespaces: you would need to change
> .Platform$file.sep in the base namespace (which you can do):
>
>> .Platform$file.sep <- ":"
>> assignInNamespace(".Platform", .Platform, "base")
>> file.path("foo", "bar")
> [1] "foo:bar"

That's the piece I was missing, thanks.

Clearly I misremembered other details as well.  Thanks for the
reminders.

+ seth



[Rd] Questions on "\" vs "/" on Windows
Seth Falcon