Skip to content

how to start R64 from M-x R...

3 messages · Christian Schulz, Simon Urbanek, John Maindonald

#
Hi there,

May be this question has been answered before, but how to start the 64 
bit version inside ESS? I have successfully used
C-u M-x R then "--arch=x86_64" <RT>, but remembering "--arch=x86_64" is 
a nuisance (for me...).
Defining on Unix >  alias R64 'R --arch=x86_64 &' works only from the 
terminal, so obviously this is an ESS thing (with elisp?) which I am not 
versed in.

Thanks for help

Christian
#
On Jan 12, 2010, at 14:47 , Christian Hoffmann wrote:

            
You may ask on the ESS list, but another way around is to change the  
default directly in the R start script by changing
: ${R_ARCH=/`arch`}
to
: ${R_ARCH=/x86_64}

Cheers,
Simon
#
The following in the .emacs file should do the job:

(setq-default inferior-R-program-name "R32")	    ; unix systems
(setq ess-r-versions '("R-1" "R-2" "R32" "R64"))

In my setup, I follow this with:
(load "/usr/local/ess/ess-5.7.1/lisp/ess-site")

Change the R32 in the initial line to R64 to make that the default.

John Maindonald             email: john.maindonald at anu.edu.au
phone : +61 2 (6125)3473    fax  : +61 2(6125)5549
Centre for Mathematics & Its Applications, Room 1194,
John Dedman Mathematical Sciences Building (Building 27)
Australian National University, Canberra ACT 0200.
http://www.maths.anu.edu.au/~johnm
On 13/01/2010, at 6:58 AM, Simon Urbanek wrote: