Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs autocomplete-mode extension for ESS and R

Is there an R-extension to Emacs autocomplete-mode that can be used with ESS?

If the extension doesn't exist I'd also appreciate any hints for writing one!

like image 423
Matti Pastell Avatar asked Jan 13 '11 16:01

Matti Pastell


2 Answers

There is an ac-source for R here. I recall struggling with it and finally wrote my own which at that time was much faster, but buggy since I didn't manage to make prefix regexp work properly.

EDIT: the newest ESS (only svn currently) has out-of-the-box integration with auto-complete. I have added the instructions to the wiki.

enter image description here

like image 127
VitoshKa Avatar answered Oct 09 '22 23:10

VitoshKa


auto-complete-acr is auto-complete sources.

it is more useful than ac-R.

add to .emacs below.

(require ‘auto-complete)
(require ‘auto-complete-acr)
like image 44
myuhe Avatar answered Oct 09 '22 22:10

myuhe