Features:
- Send commands to various programs.
- Mac: R GUI, RStudio(>v0.99.769), Terminal, iTerm 2;
- Unix: screen, tmux;
- Windows: R GUI, RStudio, Cygwin, Cmder (see below to configure Cmder);
- SublimeREPL
- Autocompletions for various packages.
- Function hints in status bar for various packages.
- Support Roxygen, Rcpp, R Sweave and R Markdown syntaxes.
- knitr build command for R markdown and Rnw files.
- R-Extended syntax.
If you like it, you could send me some tips via paypal or gratipay.
- Install via Package Control
In the following, C is ctrl for Windows/Linux, cmd for Mac.
- C + enter to send code to gui/terminal.
R
is the default for mac,R64
is default for windows andtmux
is the default for linux. To change the default program, do C + shift + p ->R-Box: Choose Program
. - C + \ to change working dir
- C + b to source the current R file, or to run knitr for Rnw or R markdown files.
See Preference -> Package Settings -> R-Box
Auto completions and status bar hints only support limited number of packages. R-Box will search for library
or require
statements in order to load the corresponding package support files. The support files are under the packages
directory. If your favorite packages are not listed there, you can generate the corresponding files by running packages.R
in the following steps.
Preference: Browse Packages
and create the directory/Users/R-Box/
if it doesn't exist- Copy the file
packages.R
toR-Box
- Run
Rscript packages.R <package name>
This will create a json file under packages
directory.
To enable SublimeLinter via SublimeLinter-contrib-R and lintr, please add the following in the SublimeLinter user settings file:
"syntax_map": {
"r extended": "r"
}
- Go to
Paste
in the settings, uncheck, "Confirm keypress" and "Confirm pasting more than..." - Change the default paste all lines command from shift+insert to ctrl+shift+v. I actually posted an issue at Cmder about the default keybind.
R-Box is licensed under the MIT License. AutoHotkeyU32.exe
under bin
is included with its own license.