Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running the R console from Sublime Text 2

Tags:

r

sublimetext2

I am quite new with Sublime Text 2. I would like to write my script in ST2 and run/send it to the R console. I don't want to use SublimeREPL (most of the forums deal with this) because I want to have my R console open on the side. I tried to install "R Tools" and the installation of this package seems to work. However, when I open my script.r file and try to run it, nothing happens. I also tried to specify the path to go to R in TOols>Build systems> new build systems... withou being successful. Can someone give me a trick to solve this?

Thanks a lot!

like image 347
user3016665 Avatar asked Nov 21 '13 08:11

user3016665


1 Answers

The easiest way is to install the Enhanced-R package via the Package Manager in Sublime:

  1. Install the Package Control here
  2. Access the Package Manager within Sublime (on Windows: Ctrl+Shift+P)
  3. Type Install Package and then Enhanced-R
  4. Send the highlighted code to R console (on Windows: Ctr+Enter)

You can see the Enhanced-R package description and relevant key bindings here

like image 161
TWL Avatar answered Sep 30 '22 21:09

TWL