From stefano.iacus at unimi.it  Wed Sep 19 17:15:55 2007
From: stefano.iacus at unimi.it (stefano iacus)
Date: Wed, 19 Sep 2007 17:15:55 +0200
Subject: [Rd] How to test if R is running on a Mac
In-Reply-To: <46F1335C.6050107@stats.uwo.ca>
References: <F189E18BBAA8B6479F618B9044CF4E9C0188517825@owa.bfro.uni-lj.si>
	<46F1335C.6050107@stats.uwo.ca>
Message-ID: <015D961A-260A-4822-8E52-AD8E092CBD9E@unimi.it>

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
>



[Rd] How to test if R is running on a Mac
stefano iacus