Re: [Rd] Best way to determine if you're running 32 or 64 bit R on windows

From: Martin Maechler <>
Date: Fri, 02 Jul 2010 21:09:29 +0000 (UTC)

Jeffrey Horner <jeffrey.horner <at>> writes:

> Is this sufficient?
> if (.Machine$sizeof.pointer==4){
> cat('32\n')
> } else {
> cat('64\n')
> }
> Or is it better to test something in R.version, say os?

No, the above is perfect, as it also works on other platforms to distinguish 32-bit and 64-bit.

Regards, Martin mailing list Received on Fri 02 Jul 2010 - 21:13:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 02 Jul 2010 - 22:20:10 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive