From jeffrey.horner at gmail.com  Fri Jul  2 22:13:07 2010
From: jeffrey.horner at gmail.com (Jeffrey Horner)
Date: Fri, 2 Jul 2010 15:13:07 -0500
Subject: [Rd] Best way to determine if you're running 32 or 64 bit R on
	windows
Message-ID: <AANLkTin2EK9OyaoETK3S-2qCn3WXB_wvmOF76iLPx-wI@mail.gmail.com>

Hi,

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?

I'd like to use this to specify appropriate linker arguments when
building the RMySQL windows package.

Jeff
-- 
http://biostat.mc.vanderbilt.edu/JeffreyHorner



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