Sublime Text 2 and R

r, sublimetext2

Solution

Open SublimeREPL's user settings like this: `Preferences -> Package Settings -> SublimeREPL -> Settings - User`

there set default_extend_path to point to your R installation:

{
    "default_extend_env": {"PATH": "{PATH};C:\\Program Files\\R\\R-2.14.2\\bin\\i386"}  
}

Running `Tools -> SublimeREPL -> R` should launch REPL as expected.

Problem

I am trying to use Sublime Text 2 as an interface to the statistics software R [update/edit: Solved!]. On Windows, I have tried the following: Installed R Tools. Turned out to be for Macintosh 64 only. Tried to program custom build file. Failed: no output returned. ``` { "cmd": "C:/Program Files/R/R-2.9.2/bin/R.exe --no-save $File" } ``` Installed SublimeREPL. Failed: R menu option disabled... [update/edit] Tried this (see wuub's reply): ``` { "default_extend_env": {"PATH": "{PATH};C:\\Program Files\\R\\R-2.9.2\\bin"} } ```

Original source