[R] what OS

Sundar Dorai-Raj
Tue, 13 Sep 2005 18:40:37 -0000

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"

HTH,

--sundar