How do I best set up M-x R32 and M-x R64?

View: New views
4 Messages — Rating Filter:   Alert me  

How do I best set up M-x R32 and M-x R64?

by John Maindonald :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I can make at present make a change to ess-sit.el so that
M-x R invokes R32 (Simon's recent R32/R64 choice for
Snow Leopard).  But how can I easily change my setup
so that M-x R32 invokes R32, while M-x R64 invokes R64?

Thanks in advance!

John Maindonald             email: john.maindonald@...
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.

______________________________________________
ESS-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Re: How do I best set up M-x R32 and M-x R64?

by Stephen Eglen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John Maindonald <john.maindonald@...> wrote:

> I can make at present make a change to ess-sit.el so that
> M-x R invokes R32 (Simon's recent R32/R64 choice for
> Snow Leopard).  But how can I easily change my setup
> so that M-x R32 invokes R32, while M-x R64 invokes R64?

ESS autodetects what versions of R are on your path using the variable
ess-r-versions:

ess-r-versions is a variable defined in `essd-r.el'.
Its value is
("R-1" "R-2" "R-devel" "R-patched")

presumably if you have a binary called 'R64' on your path, then changing
this variable to include "R64" should then mean that you can do M-x R64
to get the 64 bit version.

Stephen

______________________________________________
ESS-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Re: How do I best set up M-x R32 and M-x R64?

by John Maindonald :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks. There seems to be a bit more to it than this.

As well as doing (in essd-r.el)

(defvar ess-r-versions '("R-1" "R-2" "R-devel" "R-patched" "R32" "R64")

I also added

(setq-default inferior-R64-program-name "R64")

to ess-site.el.  Something more seems required.

(R32 and R64 do work from the command line.)

John Maindonald             email: john.maindonald@...
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.


On 19/09/2009, at 6:24 PM, Stephen Eglen wrote:

> John Maindonald <john.maindonald@...> wrote:
>
>> I can make at present make a change to ess-sit.el so that
>> M-x R invokes R32 (Simon's recent R32/R64 choice for
>> Snow Leopard).  But how can I easily change my setup
>> so that M-x R32 invokes R32, while M-x R64 invokes R64?
>
> ESS autodetects what versions of R are on your path using the variable
> ess-r-versions:
>
> ess-r-versions is a variable defined in `essd-r.el'.
> Its value is
> ("R-1" "R-2" "R-devel" "R-patched")
>
> presumably if you have a binary called 'R64' on your path, then  
> changing
> this variable to include "R64" should then mean that you can do M-x  
> R64
> to get the 64 bit version.
>
> Stephen
>
> ______________________________________________
> ESS-help@... mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

______________________________________________
ESS-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help

Re: How do I best set up M-x R32 and M-x R64?

by Stephen Eglen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

oops, I see you edited essd-r.el directly, so you can ignore the comment
about defvar and closing paren!

______________________________________________
ESS-help@... mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help