I'm using Sublime text 3, and I'm trying to get SublimeREPL to print R files output in the interactive mode that is already open, without reopen a new interactive session every time I modify the .r file and hit cmd + B
I followed sblair procedure for Python here and created R.sublime-build file with the following parameters:
{
"target": "run_existing_window_command",
"id": "repl_r",
"file": "config/R/Main.sublime-menu"
}
and modified a default line in Main.sublime-menu:
"osx": ["R", "--interactive", "--no-readline"]
into:
"osx": ["R", "--slave", "-f", "$file"]
Now every time I hit cmd + B, I get a new window, with the output by itself!
I couldn't figure out how to make the same window that runs the interactive session to print the output stay running
Note: I know that I can just switch to the prompt window and type >source("FILE") every time I change something, but I want to know if there's a way as easy as making changes to .r file, hit some shortcut, voalla your output is in the same prompt window you were working on.