[ESS] recognizing R-alpha with ESS
Martin Maechler
maechler at stat.math.ethz.ch
Thu Mar 27 11:57:36 CET 2008
>>>>> "MWK" == Mark W Kimpel <mwkimpel at gmail.com>
>>>>> on Wed, 26 Mar 2008 14:02:27 -0400 writes:
MWK> Martin,
MWK> I have R-alpha in my ~/R_HOME and a link to it in my ~/bin. R-alpha is
MWK> invokable using ./R-alpha from either directory from
MWK> bash.
but is your "~/bin" in your PATH -- or more importantly in the
PATH your emacs is using ?
Try C-h v exec-path
The code I provided (or the automatic searching that Stephen
mentioned) relies on finding the corresponding executable in the
path.
Martin
MWK> I put your code in my .emacs file. ESS, however, is
MWK> either still not seeing R-alpha or I am not using it
MWK> properly. From the ESS menu within Emacs, under "Start
MWK> Process" I have R and Other -> R-newest. Both invoke
MWK> R-2.6.1, also on my PATH.
MWK> What am I doing wrong?
MWK> Mark
MWK> Mark W. Kimpel MD ** Neuroinformatics ** Dept. of Psychiatry
MWK> Indiana University School of Medicine
MWK> 15032 Hunter Court, Westfield, IN 46074
MWK> (317) 490-5129 Work, & Mobile & VoiceMail
MWK> (317) 204-4202 Home (no voice mail please)
MWK> mwkimpel<at>gmail<dot>com
MWK> ******************************************************************
MWK> Martin Maechler wrote:
>>>>>>> "MWK" == Mark W Kimpel <mwkimpel at gmail.com>
>>>>>>> on Wed, 26 Mar 2008 13:17:41 -0400 writes:
>>
MWK> I just compiled R-alpha and put it on my PATH (Ubuntu). ESS is not
MWK> recognizing it as newest or devel or anything else.
>>
MWK> Do I need to rename it?
>>
>> Yes, or (rather)
>> put the following somewhere in your emacs start up code
>> (e.g. ~/.emacs):
>>
>> -----8<----------8<----------8<----------8<----------8<-----
>>
>> ;;; R-patched and R-devel are now autocreated from ESS :
>>
>> ;; but these are not :
>> (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)))
>>
>> -----8<----------8<----------8<----------8<----------8<-----
>>
>> which is from our group's ~/.emacs equivalent.
>>
>> Regards,
>> Martin
>>
MWK> Mark
MWK> --
>>
MWK> Mark W. Kimpel MD ** Neuroinformatics ** Dept. of Psychiatry
MWK> Indiana University School of Medicine
>>
MWK> 15032 Hunter Court, Westfield, IN 46074
>>
MWK> (317) 490-5129 Work, & Mobile & VoiceMail
MWK> (317) 204-4202 Home (no voice mail please)
>>
MWK> mwkimpel<at>gmail<dot>com
>>
MWK> ______________________________________________
MWK> ESS-help at stat.math.ethz.ch mailing list
MWK> https://stat.ethz.ch/mailman/listinfo/ess-help
>>
MWK> ______________________________________________
MWK> ESS-help at stat.math.ethz.ch mailing list
MWK> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list