From maechler at stat.math.ethz.ch  Fri Jul  2 23:09:29 2010
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Fri, 2 Jul 2010 21:09:29 +0000 (UTC)
Subject: [Rd]
	=?utf-8?q?Best_way_to_determine_if_you=27re_running_32_or_64?=
	=?utf-8?q?_bit_R_on=09windows?=
References: <AANLkTin2EK9OyaoETK3S-2qCn3WXB_wvmOF76iLPx-wI@mail.gmail.com>
Message-ID: <loom.20100702T230750-230@post.gmane.org>

Jeffrey Horner <jeffrey.horner <at> gmail.com> 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



[Rd] =?utf-8?q?Best_way_to_determine_if_you=27re_running_32_or_64?= =?utf-8?q?_bit_R_on=09windows?=
Martin Maechler