From pgilbert at bank-banque-canada.ca  Thu May 15 14:13:11 2003
From: pgilbert at bank-banque-canada.ca (Paul Gilbert)
Date: Thu May 15 19:14:35 2003
Subject: [Rd] Re: [R] R as 64 bit application (moved from R-help)
References: <Pine.A41.4.44.0305150902550.23588-100000@homer36.u.washington.edu>
Message-ID: <3EC3CAA7.782B6F58@bank-banque-canada.ca>

Feature request:

Could this or the pointer size be added to r-devel as an element of
capabilities()? 

(Apart from my possible use of this, I think with the potentially wider
availability of 64 bit processors it is worth publicizing the 64 bit capability
of R.)

Paul Gilbert

Thomas Lumley wrote:
> 
> On Thu, 15 May 2003, Paul Gilbert wrote:
> 
> > In a package test I have a problem that needs over 4G of memory. This
> > requires that I use R compiled as a 64 bit application. Is there a way
> > within R to test if R has been compile as a 64 bit application? This
> > would allow me to automatically skip the test when I know it is going to
> > fail.
> >
> 
> I don't think so.  You could use a simple C function
> 
>   void is64bit (int *sizeptr){
>         *sizeptr = sizeof sizeptr ==8;
>         return;
>         }
> 
>   is64bit<-function(){
>         .C("is64bit",logical(1))[[1]]
>         }
> 
>         -thomas
> 
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[Rd] Re: [R] R as 64 bit application (moved from R-help)
Paul Gilbert