[R] what OS

Sundar Dorai-Raj sundar.dorai-raj at pdf.com
Tue Sep 13 20:40:37 CEST 2005



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




More information about the R-help mailing list