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