RStudio: a cross-platform IDE for R

Which text editor do you use? Once in a while this question pops up on the R-help mailing list. Up until recently I used the KDE text editor Kate under Linux. Recently, I came across a new text editor for R, RStudio. Although the term text editor does not do it justice, it is more of an Integrated Development Environment (IDE).

RStudio is an open-source R IDE which started at the beginning of this year (2011). It divides the available area up into several panels, see also the screenshot above. One panel for source code (supporting tabs), one for the R console, one for the currently active objects/history, and finally one panel for a file browser/plot window/package install window/R help window (tabbed). The source editor supports text highlighting and allows the user to select R code and run it with a keyboard shortcut. It also supports running RStudio as a server, allowing users to access it through a web browser (although I haven’t tried it yet).

I really like RStudio for the integration it offers. You get one coherent view of your code, result in the R console and any plots your working on. Furthermore, it runs on all of the major operating systems. This makes it a very good install for Windows and Linux users who are stuck without a decent out-of-the-box development environment for R. Finally, the developers are really active and open to suggestions. It is very impressive to me that they already have such an impressive product although it has been released only at the beginning of this year.

There are also points that I think can be improved. Sometimes I want to interrupt long running commands, this sometimes causes RStudio to crash. Furthermore, I would like the ability to have more than one source file in view. RStudio has support for tabs in the source editor, but splitting the screen in the style of Kate would be awesome.

In my opinion, RStudio is one of the best solutions out there to work with R. Definitely better than for example Tinn-R or Notepad++ on Windows. Give RStudio a look and I think you’ll like it. RStudio is available on:

http://rstudio.org/

Updated: (Nov 12). A comment from Dirk (see below) led me to change some details in the article.

Tagged with: , ,
Posted in R stuff
9 Comments » for RStudio: a cross-platform IDE for R
  1. Minor nit: No Java in RStudio. It is a (rather heavy) helping of modern C++ with a lot of Javascript (which ain’t Java) for the browser glue.

    And if you haven’t tried RStudio in server mode via a browser you haven’t seen nothing yet. Needs a Unix box to host though.

    • jverzani says:

      Okay, no java in RStudio, but what about after :)

      john-verzanis-macbook-pro:rstudio verzani$ find . -name RStudio.java
      ./src/gwt/src/org/rstudio/studio/client/RStudio.java

      Anyways, O’Reilly has really cheap book about the joys of RStudio.

    • Paul Hiemstra says:

      I’ll correct my post accordingly, thanks Dirk. And I haven’t tried running it through a browser. What do you like about running it through a web browser?

  2. EvanZ says:

    You can stop a command during execution by clicking on the little red stop sign button that appears just above the command window.

    • Paul Hiemstra says:

      I know, or by pressing ESC, but sometimes RStudio is not successfull in shutting down R once you do that. The only thing that helps than is to kill RStudio altogether. Funny detail is that once you press ESC/red button and RStudio fails, you can no longer save your R script…would be nice if RStudio and R would run seperately, allowing me to kill the R session without killing RStudio.

  3. disgruntledphd says:

    I would argue that Emacs with Emacs speaks statistics (and auctex for sweave) is a pretty good out of the box environment for R.

    sudo apt-get install r-base emacs ess auctex

    and you’re done.

    I suppose you then have to navigate the intricacies of Emacs, but thats actually rather fun (in addition, if you build R from source and make info then you have all the R manuals within Emacs, which is nice).

  4. One thing that you can not forget is the fact that RStudio allows you to handle Sweave and TeX files with in it, i.e. you get code highlight + you can run’em from RStudio!

    cheers from chile!

1 Pings/Trackbacks for "RStudio: a cross-platform IDE for R"
  1. [...] RStudio: a cross-platform IDE for R | NumberTheory [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">