Re: [Rd] How to test if R is running on a Mac

From: stefano iacus <stefano.iacus_at_unimi.it>
Date: Wed, 19 Sep 2007 17:15:55 +0200

what about

 > system("uname")
 >
Darwin

stefano

On 19/set/07, at 16:34, Duncan Murdoch wrote:

> On 9/19/2007 9:41 AM, Gorjanc Gregor wrote:
>> Hi!
>>
>> Is there any way to test if R is running on a Mac? I usually use
>> value of .Platform$OS.type for windows or unix, but Mac falls in the
>> latter group.
>
> Remember to also look at .Platform$GUI: the GUI version behaves quite
> differently from command line R from a user's point of view (both
> on the
> Mac and on Windows), and occasionally from a programmer's point of
> view
> (e.g. the graphics device on the Mac).
>
> Duncan
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 21 Sep 2007 - 12:34:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 21 Sep 2007 - 12:41:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.