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

From: Jeffrey Horner <jeffrey.horner_at_gmail.com>
Date: Fri, 02 Jul 2010 15:13:07 -0500


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

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri 02 Jul 2010 - 20:15:24 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 Sat 03 Jul 2010 - 12:00:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive