[R] Querying the path separator?

Berend Hasselman bhh at xs4all.nl
Wed Jun 29 08:05:49 CEST 2011


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.



More information about the R-help mailing list