I'm attempting to set up SublimeText (Windows) to send R code to an open R REPL but failing. I know that R-Box is initialized somewhat properly because I can send code to the default R console.
The question is: How do I set up the config file to send the R code to the repl with [CTRL] + [Enter]
I'm assuming that this is an oversight on my part regarding the setup of the package, but there aren't any instructions I can find for initial setup for sending to REPL. What I have tried (BELOW) has been put together from other config files I've found on stack and around the web.
Here is my config file:
{
// TRIED THIS
// "prog" : "SublimeREPL",
// TRIED THIS
// "App" : "SublimeREPL",
// path to Rgui.exe (for windows only)
"R64" : "C:\\Program Files\\R\\R-3.2.3\\bin\\x64\\Rgui.exe",
// path to Rscript binary
// "rscript": "/usr/local/bin/rscript",
// auto advance to the next line.
"auto_advance" : true,
// auto advance to the next non-empty line. Override to false if "auto_advance" is false.
"auto_advance_non_empty": false,
// enable auto completions
"auto_completions": true,
// enable status bar hint
"status_bar_hint": true
}
I've also tried [CTRL] + [Shift] + [p], R-Box:Choose Program, SublimeREPL
edit 1:
GUI approach fails too Tools > SublimeREPL > Eval in REPL > Selection
Shortcut key and GUI approach fail for Python as well
I managed to get it working by changing the user settings of the SendTextPlus package to:
{
"prog": "SublimeREPL",
}
It seems the reason you have to change it in the SendTextPlus package settings instead of the R-Box package is that the send code functionality has been exported to SendTextPlus in the newest version. Hope this helps.
For reference: https://raw.githubusercontent.com/randy3k/R-Box/master/README.md
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With