[R] what OS

Uwe Ligges
Tue, 13 Sep 2005 20:32:47 -0000

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!