Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autocomplete R in Sublime Text 2

I am trying to find a package that would support Autocomplete of the R Syntax in Sublime Text 2 similar to the way Sublime supports for Python or Ruby. That is when start typing 'vec..." it prompts with "vector" in the pop up.

like image 794
Ashu Joshi Avatar asked Sep 28 '12 17:09

Ashu Joshi


People also ask

How do I enable autocomplete in Sublime Text?

Usage. By default, Sublime Text will automatically show the completions popup when a user is editing source code or markup, but not within prose in comments, strings or markups. Pressing the Esc key will hide the completions popup. To manually show the completions popup, press Ctrl+Space.

Does Sublime have intellisense?

You can add the auto-complete Intellisense feature for Kony UI, API, and SDK functions while working with Sublime Text from Visualizer. You must install the Ternjs for Sublime package to enable this feature.


1 Answers

Yep, it exists.

Drag R.sublime-completions into your ~/Library/Application Support/Sublime Text 2/Packages/R (or the equivalent folder in Windows). Another way to get to the folder is click Sublime Text > Preferences > Browse Packages...

Also, if you are going to use Sublime Text 2 for R, here is a (shameless) plug for rtools, which allows you to send selections from ST2 to R. You can install via Package Control.

like image 173
Maiasaura Avatar answered Oct 18 '22 02:10

Maiasaura