[R] what OS

Liaw, Andy
Tue, 13 Sep 2005 18:47:09 -0000

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