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

Jeffrey Horner jeffrey.horner at gmail.com
Fri Jul 2 22:13:07 CEST 2010


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



More information about the R-devel mailing list