[R] what OS

Liaw, Andy andy_liaw at merck.com
Tue Sep 13 20:47:09 CEST 2005


> 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.

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
> 
> 
>




More information about the R-help mailing list