[R] what OS

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Sep 13 22:32:47 CEST 2005


Liaw, Andy wrote:
>>From: Sundar Dorai-Raj
>>
>>Omar Lakkis wrote:
>>
>>>How can I determine whT OS I am running under?
>>>
>>>if WINDOWS do this 
>>>if LINUX do that
>>>
>>
>>Hi, Omar,
>>
>>Look at version$os.
>>
>> > # windows
>> > version$os
>>[1] "mingw32"
>>
>> > # linux
>> > version$os
>>[1] "linux-gnu"
> 
> 
> Or see ?.Platform.

Yes, please follow Andy and use .Platform, and in particular nothing 
else for programming!
It is *not* guaranteed that on Windows version$os == "mingw32".

Uwe Ligges




> Andy
> 
>  
> 
>>HTH,
>>
>>--sundar
>>
>>______________________________________________
>>R-help at stat.math.ethz.ch mailing list
>>https://stat.ethz.ch/mailman/listinfo/r-help
>>PLEASE do read the posting guide! 
>>http://www.R-project.org/posting-guide.html
>>
>>
>>
> 
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list