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

Seth Falcon sfalcon at fhcrc.org
Sat Aug 20 17:51:11 CEST 2005


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



More information about the R-devel mailing list