Platforms with MSB (Most Significant Byte)

ripley@stats.ox.ac.uk ripley@stats.ox.ac.uk
Thu, 25 Jul 2002 16:34:13 +0100 (BST)


On Thu, 25 Jul 2002, Duncan Murdoch wrote:

> 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

Platform() is to be deprecated in the next release: please use
.Platform$endian instead.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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