Re: [Rd] Questions on "\" vs "/" on Windows

From: Seth Falcon <sfalcon_at_fhcrc.org>
Date: Sat 20 Aug 2005 - 15:51:11 GMT

On 20 Aug 2005, ripley@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



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sun Aug 21 01:59:46 2005

This archive was generated by hypermail 2.1.8 : Mon 24 Oct 2005 - 22:27:40 GMT