Starting R console from Sublime Text 2

I am completely new with Sublime Text 2. I would like to write my script in ST2 and run / send it to the console R. I do not want to use SublimeREPL (most forums understand this), because I want to open the R console on the side. I tried installing "R Tools", and installing this package seems to work. However, when I open the script.r file and try to run it, nothing happens. I also tried to indicate the path to R in TOOLS> Build systems> new build systems ... with success. Can someone give me a trick to solve this problem?

Thanks a lot!

+6
source share
2 answers

The easiest way is to install the Enhanced-R package through the package manager in Sublime:

  • Set package management here
  • Access to the package manager in Sublime (on Windows: Ctrl+Shift+P )
  • Type Install Package , and then Enhanced-R
  • Send the highlighted code to the R console (on Windows: Ctr+Enter )

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

+14
source

I just stumbled upon this post because I had a similar problem using Sublime and R. Perhaps this helps someone who wants to have a similar setup. Hope that more and more R users will consider Sublime. I understood the following solution using the Sublime build system in the xterm external terminal (for Linux, but it should be very similar to the installation on Win / Mac systems): Sublime Text 3 build system: save the console

+1
source

Source: https://habr.com/ru/post/958544/


All Articles