(no subject)

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

(no subject)

by Stephen Eglen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear John,

I don't have a real R64 binary on my machhine, so I just did the
following:

ln -s /usr/bin/R ~/bin/R64

and then added

(setq ess-r-versions '("R-1" "R-2" "R64"))

to the end of .emacs and restarted emacs.  I could then do

M-x R64

which starts R (but of course is R 2.9.2)

Could you try this symlink approach (e.g. R99 -> regular 'R')  to see if
the problem is whether the ess-r-version code or to the binary being
linked to.  

ALso, I asssume your R64 binary is on the list of paths searched by
emacs, which you can see by
C-h v exec-path

Stephen

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

Re: (no subject)

by Stephen Eglen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> (setq ess-r-versions '("R-1" "R-2" "R64"))
>
> to the end of .emacs and restarted emacs.  I could then do

sorry for any confusion, it should come *before* loading ess-site.el

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

Re: (no subject)

by John Maindonald :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, that works,  Actually, I placed
(setq ess-r-versions '("R-1" "R-2" "R32" "R64"))
in my .emacs, before loading ess-site.el.

That turns out to be all that I need to do.  If I make that change,
I can leave my ess-5.4 installation files unchanged, I find.  So
what does the command

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

do, in essd-r.el?  Does it do what is necessary when one has, e.g.,
R-devel on one's path?

My emacs path has the path to R32 and R64, of course.

I take it, that I was misled by the lines in ess-site.el,
as a model for what I was after:

;;(setq-default inferior-S+6-program-name "Splus8") ; unix systems
;;(setq-default inferior-R-program-name "R")    ; unix systems

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 20/09/2009, at 12:08 AM, Stephen Eglen wrote:

> Dear John,
>
> I don't have a real R64 binary on my machhine, so I just did the
> following:
>
> ln -s /usr/bin/R ~/bin/R64
>
> and then added
>
> (setq ess-r-versions '("R-1" "R-2" "R64"))
>
> to the end of .emacs and restarted emacs.  I could then do
>
> M-x R64
>
> which starts R (but of course is R 2.9.2)
>
> Could you try this symlink approach (e.g. R99 -> regular 'R')  to  
> see if
> the problem is whether the ess-r-version code or to the binary being
> linked to.
>
> ALso, I asssume your R64 binary is on the list of paths searched by
> emacs, which you can see by
> C-h v exec-path
>
> 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 John Maindonald :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

(This was sent a few moments ago without a subject!)

Yes, that works,  Actually, I placed
(setq ess-r-versions '("R-1" "R-2" "R32" "R64"))
in my .emacs, before loading ess-site.el.

That turns out to be all that I need to do.  If I make that change,
I can leave my ess-5.4 installation files unchanged, I find.  So
what does the command

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

do, in essd-r.el?  Does it do what is necessary when one has, e.g.,
R-devel on one's path?

My emacs path has the path to R32 and R64, of course.

I take it, that I was misled by the lines in ess-site.el,
as a model for what I was after:

;;(setq-default inferior-S+6-program-name "Splus8") ; unix systems
;;(setq-default inferior-R-program-name "R")    ; unix systems

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 20/09/2009, at 12:08 AM, Stephen Eglen wrote:

> Dear John,
>
> I don't have a real R64 binary on my machhine, so I just did the
> following:
>
> ln -s /usr/bin/R ~/bin/R64
>
> and then added
>
> (setq ess-r-versions '("R-1" "R-2" "R64"))
>
> to the end of .emacs and restarted emacs.  I could then do
>
> M-x R64
>
> which starts R (but of course is R 2.9.2)
>
> Could you try this symlink approach (e.g. R99 -> regular 'R')  to  
> see if
> the problem is whether the ess-r-version code or to the binary being
> linked to.
>
> ALso, I asssume your R64 binary is on the list of paths searched by
> emacs, which you can see by
> C-h v exec-path
>
> 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

> Yes, that works,  Actually, I placed
> (setq ess-r-versions '("R-1" "R-2" "R32" "R64"))
> in my .emacs, before loading ess-site.el.
>
> That turns out to be all that I need to do.  If I make that change,
> I can leave my ess-5.4 installation files unchanged, I find.

great. and in general, that should be the way - change your .emacs file
 rather than the ess files.

>
> (defvar ess-r-versions '("R-1" "R-2" "R-devel" "R-patched"))
>
> do, in essd-r.el?  Does it do what is necessary when one has, e.g.,
> R-devel on one's path?
It should have worked - Martin requested R-devel so I hope he'll say
whether that works for him.

Did you have a byte compiled essd-r.elc file also in the dir?  in that
case, you either should have deleted the .elc file, or byte-compiled
again.


> My emacs path has the path to R32 and R64, of course.
>
> I take it, that I was misled by the lines in ess-site.el,
> as a model for what I was after:
>
> ;;(setq-default inferior-S+6-program-name "Splus8") ; unix systems
> ;;(setq-default inferior-R-program-name "R")    ; unix systems
yes, those comments in ess-site.el (sec 1.4) look way out of date, and
are a candidate for removal - thanks for pointing that out.

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 Richard M. Heiberger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Stephen,

I don't see
;;(setq-default inferior-S+6-program-name "Splus8") ; unix systems
;;(setq-default inferior-R-program-name "R")    ; unix systems
as candidates for removal.  They have an entirely different purpose
than ess-r-versions.  They are for user-specification of which program
is called by the simple key commands M-x S or M-x R.

ess-R-versions is different.  ess-R-versions finds everything on the
computer and defines a version-specific emacs functionname, allowing
statements as M-x R-x.y.z

Rich

______________________________________________
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

Richard M. Heiberger <rmh@...> wrote:


> I don't see
> ;;(setq-default inferior-S+6-program-name "Splus8") ; unix systems
> ;;(setq-default inferior-R-program-name "R")    ; unix systems
> as candidates for removal.  They have an entirely different purpose
> than ess-r-versions.  They are for user-specification of which program
> is called by the simple key commands M-x S or M-x R.
>
> ess-R-versions is different.  ess-R-versions finds everything on the
> computer and defines a version-specific emacs functionname, allowing
> statements as M-x R-x.y.z

hi Rich, okay, agree -- I've added a comment instead in close vicinity
to those lines to point readers towards ess-r-versions if they are
looking for ways to call other versions of R.

Stephen

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