[R] Branching, depending upon operating system

Paul Roebuck roebuck at mdanderson.org
Fri Mar 31 23:33:44 CEST 2006

On Fri, 31 Mar 2006, Frank Rossdeutscher wrote:

> From my current code, I need to call either a batch
> file or shell script, depending on what operating system
> R is running. But before that I need to find out, whether
> the machine is running Windows or Linux. I found the
> "getBuiltinOs()" command in the utils package, but I cant
> get it to work. It really shouldn`t be difficult, but how
> can I do an if-branch using that (or a different) command?

system(if (.Platform$OS.type == "windows") {
       } else {

SIGSIG -- signature too long (core dumped)

More information about the R-help mailing list