[R] How Can I Tell if the R Running is 64 bit or 32 bit?

Marc Schwartz marc_schwartz at comcast.net
Fri Aug 8 23:09:23 CEST 2008


Try:

 > 8*4
[1] 32

As per the help page for .Machine:

   sizeof.pointer 	the number of *bytes* in a C SEXP type.

So:

   8 bits per byte * 4 bytes = 32 bits


:-)

HTH,

Marc Schwartz


on 08/08/2008 03:58 PM milton ruser wrote:
> Dear Prof. B.Ripley,
> 
> If :
>> .Machine$sizeof.pointer
> [1] 4
>> 2*2*2*2
> [1] 16
> 
> So I am running with 16 bits?
> 
> How can I know the number of bits supported on my machine?
> 
> Kindly,
> 
> miltinho astronauta
> brazil
> 
> On 8/8/08, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
>> Look at .Machine$sizeof.pointer (in bytes).
>>
>> On Fri, 8 Aug 2008, Tom La Bone wrote:
>>
>>
>>> I think I installed 64-bit Ubuntu 8.04 and 64-bit R on my computer. I
>>> can't
>>> seem to find anything that says "this is 64-bit Ubuntu" or "this is 64-bit
>>> R". How do I tell what version of R I am running?
>>>
>>> Tom



More information about the R-help mailing list