[ESS] recognizing R-alpha with ESS
Mark W Kimpel
mwkimpel at gmail.com
Fri Mar 28 00:04:50 CET 2008
Okay guys, I decided to start from scratch, simplify my setup, and see
if that worked. It didn't. Here is want I did:
1. uninstalled Ubuntu emacs and all related files
2. uninstalled emacs 22.1 and ess-5.3.5
3. uninstalled R-alpha and its tar source
4. took everything out of my .emacs that did not have to be there to
address my current problem.
4. installed emacs-22.2 from new source (gtk not working BTW)
5. installed ess-5.3.6 from new source
6. installed R-alpha from new tar file and place symlink into my ~/bin
7. tested emacs-22.2 and ess-5.3.6 with R-2.6.1.
8. invoked both R-2.6.1 and R-alpha from my home directory
8. checked to make sure ~/bin is on both my PATH and exec-path
Still can only invoke R-2.6.1 from ESS. My simplified .emacs follows below.
Also, anyone know how to get my GTK bindings working with the above
described setup? Ubuntu has a special emacs-gtk, but I never needed this
when I used to use openSuse.
########################
; .emacs
;;to initiate ess load
(load "/home/mkimpel/src/ess-5.3.6/lisp/ess-site")
(require 'ess-eldoc)
;; to get ESS to recognize various R versions on path, from Martin
Maechler: maechler at stat.math.ethz.ch
;;; R-patched and R-devel are now autocreated from ESS :
;; but these are not :
(setq ess-r-versions '("R-1" "R-2" "R-devel" "R-alpha"))
(defun R-beta (&optional start-args)
"Call the current beta version of R (using ESS)."
(interactive "P") (let ((inferior-R-program-name "R-beta")) (R
start-args)))
(defun R-alpha (&optional start-args)
"Call the current alpha version of R (using ESS)."
(interactive "P") (let ((inferior-R-program-name "R-alpha")) (R
start-args)))
(defun R-rc (&optional start-args)
"Call the current rc (Release Candidate) version of R (using ESS)."
(interactive "P") (let ((inferior-R-program-name "R-rc")) (R
start-args)))
(defun R-pre-rel (&optional start-args)
"Call the current Pre-rel(ease) version of R (using ESS)."
(interactive "P") (let ((inferior-R-program-name "R-pre-rel")) (R
start-args)))
Thanks,
Mark
Mark W. Kimpel MD ** Neuroinformatics ** Dept. of Psychiatry
Indiana University School of Medicine
15032 Hunter Court, Westfield, IN 46074
(317) 490-5129 Work, & Mobile & VoiceMail
(317) 204-4202 Home (no voice mail please)
mwkimpel<at>gmail<dot>com
******************************************************************
Stephen Eglen wrote:
> > I did not have that particular line, but did not affect the behavior.
> > Attached is a screenshot of the pertinent portion of emacs and exec-path.
>
> your screenshot shows you have commas in the list -- that's a no no!
> (Did Emacs show an error during startup?)
>
> you need
>
>> (setq ess-r-versions '("R-1" "R-2" "R-devel" "R-alpha"))
>
More information about the ESS-help
mailing list