On Fri, 2 Jul 2010, Jeffrey Horner wrote:
Hi,
Is this sufficient?
Yes, if you want to know in R code.
if (.Machine$sizeof.pointer==4){
cat('32\n')
} else {
cat('64\n')
}
Or is it better to test something in R.version, say os?
Not 'os' (the OS is the same), but 'arch' changes. Just as
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
--
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