Przemek Grabowicz
2010-Jul-05 17:25 UTC
[R] How to determine if R is 64 bit compiled under Unix-alike?
Under MacOS I had R64 executive and it was clear. Under Ubuntu, which I do not have administrative rights to, there is only R executive. It seems that I can allocate more than 3GB of memory, however not everything seems to work the same/right as with R64 under MacOS. Pms.
Przemek Grabowicz
2010-Jul-05 21:05 UTC
[R] How to determine if R is 64 bit compiled under Unix-alike?
On 07/05/2010 10:52 PM, Marcin Jaworski wrote:> Try: > > .Machine$sizeof.pointer > > If you get 8, you are riding 64 bit R. If you get 4, your R is 32-bit one. >I got 8, so should be 64 bits. But I have problems with some package, could it be that it is 32-bit? It was installed using: R CMD INSTALL foobar.tar.gz On MacOS using R64 CMD INSTALL foobar.tar.gz gave proper effect. But here on Ubuntu it seems that objects from that package are not able to load much data.
Bernardo Rangel Tura
2010-Jul-05 21:06 UTC
[R] How to determine if R is 64 bit compiled under Unix-alike?
On Mon, 2010-07-05 at 19:25 +0200, Przemek Grabowicz wrote:> Under MacOS I had R64 executive and it was clear. Under Ubuntu, which I > do not have administrative rights to, there is only R executive. It > seems that I can allocate more than 3GB of memory, however not > everything seems to work the same/right as with R64 under MacOS. > > Pms. >Type .Machine$sizeof.pointer If respond is 8 your R is 64 bits -- Bernardo Rangel Tura, M.D,MPH,Ph.D National Institute of Cardiology Brazil
Stuart Luppescu
2010-Jul-05 21:25 UTC
[R] How to determine if R is 64 bit compiled under Unix-alike?
On ?, 2010-07-05 at 19:25 +0200, Przemek Grabowicz wrote:> Under MacOS I had R64 executive and it was clear. Under Ubuntu, which I > do not have administrative rights to, there is only R executive. It > seems that I can allocate more than 3GB of memory, however not > everything seems to work the same/right as with R64 under MacOS.If you can locate the R executable then the command "file" will tell you right away. On my system (Gentoo), the R command is actually a shell script that sets a number of environment variables, etc. and then calls the actual R executable, which is /usr/lib64/R/bin/exec/R (don't know if this is the same in Ubuntu). File then gives: file /usr/lib64/R/bin/exec/R /usr/lib64/R/bin/exec/R: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.9, stripped -- Stuart Luppescu -*-*- slu <at> ccsr <dot> uchicago <dot> edu CCSR in UEI at U of C