Skip to content
Back to formatted view

Raw Message

Message-ID: <1309327549253-3632161.post@n4.nabble.com>
Date: 2011-06-29T06:05:49Z
From: Berend Hasselman
Subject: Querying the path separator?
In-Reply-To: <BANLkTimhuz1JcuK+T+XiJzFZ6mkf4fHu1A@mail.gmail.com>

Jonathan Greenberg wrote:
> 
> The problem is that I'm trying to create a path to use with a system()
> call, and the command window will not work with the forward slash,
> only with the standard backslash.  I do understand that within R it
> will work with either way, but not via the system call.  I'm trying to
> create a "generic" system() call that will work with an external
> executable that is available on both windows and unix machines.
> 

Would .Platform$file.sep help you?
I can't test this.

Berend

--
View this message in context: http://r.789695.n4.nabble.com/Querying-the-path-separator-tp3631806p3632161.html
Sent from the R help mailing list archive at Nabble.com.