Peter

Your proposal appears to work better than expected:     
        On a 64-bit machine, it reported
                64 when R64 was launched
                32 when R62 was launched
        On a 32-bit machine, it reported 32.

The underlying issue for me is that I am calling c code — I want to make sure 
that I don’t call 64-bit c code when I am using 32-bit R (either in Windows 32- 
or 64-bit).  

Dennis


Dennis Fisher MD
P < (The "P Less Than" Company)
Phone: 1-866-PLessThan (1-866-753-7784)
Fax: 1-866-PLessThan (1-866-753-7784)
www.PLessThan.com



On Apr 10, 2014, at 1:23 PM, peter dalgaard <[email protected]> wrote:

> I believe that b. is .Machine$sizeof.pointer*8. 
> 
> I am not aware of a method to figure out the difficult part of a.: whether a 
> 32 bit R is running on 64 bit Windows. I'd expect that you have to ask the OS 
> somehow. Google coughs up one or two interesting pointers.
> 
> -pd  
> 
> On 10 Apr 2014, at 21:48 , Fisher Dennis <[email protected]> wrote:
> 
>> 3.0.2
>> Windows
>> 
>> Colleagues,
>> 
>> If I am setting up code for others and I don’t know their configuration, 
>> what is the simplest way to find out the following within R:
>>      a.  is the system 32- or 64-bit?
>>      b.  if the system is 64-bit, is R 32- or 64-bit?
>> 
>> Dennis
>> 
>> Dennis Fisher MD
>> P < (The "P Less Than" Company)
>> Phone: 1-866-PLessThan (1-866-753-7784)
>> Fax: 1-866-PLessThan (1-866-753-7784)
>> www.PLessThan.com
>> 
>> 
>> 
>> 
>>      [[alternative HTML version deleted]]
>> 
>> ______________________________________________
>> [email protected] mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> 
> -- 
> Peter Dalgaard, Professor,
> Center for Statistics, Copenhagen Business School
> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
> Phone: (+45)38153501
> Email: [email protected]  Priv: [email protected]
> 
> 
> 
> 
> 
> 
> 
> 

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to