[ESS] help: how to set up R mode in emacs via ESS

Liu, Ran r@n@||u @end|ng |rom b@m|@com
Wed Jul 29 22:26:32 CEST 2015


Thanks guys for all the helpful information/ideas. I got it fixed by rolling back to a older version of ESS in order to be compatible to my old EMACS( over which I have no admin right). On top of that I also added these three lines:

(add-to-list 'load-path "/path/to/ess-5.3.4/lisp");;<<CHANGE
(autoload 'R-mode "ess-site.el" "ESS" t)
(add-to-list 'auto-mode-alist '("\\.R$" . R-mode))

Emacs and ess now finally come together when it comes to editing R files. 



-----Original Message-----
From: Dr S.J. Eglen [mailto:sje30 using hermes.cam.ac.uk] On Behalf Of Stephen Eglen
Sent: Wednesday, July 29, 2015 4:00 PM
To: Martin Maechler
Cc: Liu, Ran; Stephen Eglen; ess-help using r-project.org
Subject: Re: [ESS] help: how to set up R mode in emacs via ESS

Sorry Martin, I should have followed up to the list.  The problem turned out to be an old version (22.2) of Emacs.

Stephen

On Wed, Jul 29 2015, Martin Maechler wrote:

> What does
>
> M-x ess-version
>
> give?
>
> What about
>
> M-x locate-library   [Enter]   ess-help
>
> Does
>
> M-x  R
>
> work ?
>
>
> On Tue, Jul 28, 2015 at 8:58 PM, Liu, Ran <ran.liu using baml.com> wrote:
>> BTW, my ess version is 15.03-1
>>
>> -----Original Message-----
>> From: Dr S.J. Eglen [mailto:sje30 using hermes.cam.ac.uk] On Behalf Of 
>> Stephen Eglen
>> Sent: Tuesday, July 28, 2015 2:49 PM
>> To: Liu, Ran
>> Cc: ess-help using r-project.org
>> Subject: Re: [ESS] help: how to set up R mode in emacs via ESS
>>
>>
>>>
>>> I am new to ESS and learnt that ESS is the way to go about editing R file with highlighting, coloring in Emacs. Below is the line I put in my .emacs file:
>>>
>>> (add-to-list 'auto-mode-alist '("\\.R$" . ess-mode))
>>
>> Did you also put something like:
>>
>> (require 'ess-site)
>>
>> in your .emacs?
>>
>> ---------------------------------------------------------------------
>> - This message, and any attachments, is for the 
>> intended...{{dropped:7}}
>
> ______________________________________________
> ESS-help using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

----------------------------------------------------------------------
This message, and any attachments, is for the intended r...{{dropped:2}}




More information about the ESS-help mailing list