One way (from my MacPro OS X 10.5.5):

> .Platform$OS.type
[1] "unix"

Another:

> Sys.info()["sysname"]
 sysname
"Darwin"

The help pages say NOT to do this:
> R.version$os
[1] "darwin9.5.0"

-- David Winsemius

On Dec 7, 2008, at 11:17 AM, Nino Hardt wrote:

Hi,

when windows and mac users collaborate, one always has to use search&replace
on the quartz() function.

Is there a better way? Some command which tells whether one is working in a
Windows or OSX setting?



Thanks
Nino

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to