Emacs mode for R?

EmacsR

Emacs Problem Overview


Is there a mode in emacs that does syntax highlighting for the R programming language? R-mode doesn't seem to work...

Emacs Solutions


Solution 1 - Emacs

Yes, there is: ESS.

And it is very highly recommended. And it does a lot more than just syntax highlighting so please read the docs.

Edit: Some ten+ years later, installation got easier too:

M-x package-refresh-contents ENTER
M-x package-install ENTER ess ENTER

You may want some related packages, eg poly-mode is good for markdown support, but this is a start.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionWilduckView Question on Stackoverflow
Solution 1 - EmacsDirk EddelbuettelView Answer on Stackoverflow