Platforms with MSB (Most Significant Byte)

Duncan Murdoch dmurdoch@pair.com
Thu, 25 Jul 2002 11:16:00 -0400


On Thu, 25 Jul 2002 16:15:31 +0200 (CEST), you wrote:

>Hi,
>
>I asked some days ago how to guess the o.s. the machine is running. I
>found that it is stored in a variable called  R_PLATFORM. Now I need a
>full list of  all the values this variable can have because I need to set
>an option  depending on the endianness of the platform in which we are
>compiling the package.
>
> Anyone can help me? Thanks,

I don't think a complete list exists.  I'd suggest running R to find
out:  Platform()$endian gives the result you need, so something like
this works in Windows:

 echo cat(Platform()$endian) | Rterm --slave

Duncan Murdoch

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._