[R] Operating System Variable
    Duncan Murdoch 
    murdoch at stats.uwo.ca
       
    Fri Mar  5 16:00:47 CET 2010
    
    
  
On 05/03/2010 9:45 AM, Rob Helpert wrote:
> Hi.
>
> Is there an easy way (analogous to the $^O variable in perl) to find
> out what operating system R is currently using?
.Platform is probably what you want.  R.version gives related 
information. I don't think there's anything built in to determine 
platform version numbers.
For instance, running 32-bit R on 64-bit Windows 7 .Platform says
 > .Platform
$OS.type
[1] "windows"
$file.sep
[1] "/"
$dynlib.ext
[1] ".dll"
$GUI
[1] "Rgui"
$endian
[1] "little"
$pkgType
[1] "win.binary"
$path.sep
[1] ";"
$r_arch
[1] ""
Duncan Murdoch
    
    
More information about the R-help
mailing list