[R-SIG-Mac] Change Rscript to 64-bit

Simon Urbanek simon.urbanek at r-project.org
Sat Feb 23 14:24:12 CET 2013


On Feb 22, 2013, at 11:32 PM, Alton Ing wrote:

> How can we change Rscript to execute in 64-bit?
> 

At least in CRAN R it *is* 64-bit:

$ Rscript -e 'sessionInfo()$platform'
[1] "x86_64-apple-darwin9.8.0/x86_64 (64-bit)"

in fact, it's universal:

$ file `which Rscript`
/usr/bin/Rscript: Mach-O universal binary with 2 architectures
/usr/bin/Rscript (for architecture i386):	Mach-O executable i386
/usr/bin/Rscript (for architecture x86_64):	Mach-O 64-bit executable x86_64
$ file -h `which Rscript`
/usr/bin/Rscript: symbolic link to /Library/Frameworks/R.framework/Resources/bin/Rscript

so you get whichever is preferred by your system and you. Hence the problem seems with your setup, not R we provide.

Cheers,
Simon




> The following script prints "i386-apple-darwin9.8.0/i386 (32-bit)" :
> 
> #!/usr/bin/env Rscript
> sessionInfo()$platform
> 
> I want to run RHadoop (rmr2) locally on Mac OS X 10.8.2 (Mountain
> Lion) but it only works with Rscript in 64-bit mode.
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> 



More information about the R-SIG-Mac mailing list