Jeromy Anglim's Blog: Psychology and Statistics

Saturday, March 14, 2009

User Interface for R: StatET and Eclipse

R is tremendously flexible. It’s flexible in how commands can be written, and it’s flexible in the user interface that can be used to run it. I’ve been playing around with different user interfaces on Windows for a while now.

When I was first getting oriented, I used the basic user interface that comes with the R installation. I then set up ESS with XEmacs. However, as someone who is used to Windows short cut keys, it was a little confusing trying to use all the Emacs short cut keys. I’ve also had a play around with Tinn-R, R-Commander, and a few others.

For now, I’ve settled on Eclipse and the StatET plug-in. Eclipse is an attractive and user friendly coding environment that runs on Java. The StatET plug-in makes it easy to run R code in Eclipse.

Features that I like:
  • Colour coding of code
  • Code folding
  • Windows-friendly short cut keys
  • Good interface with the R console: The R console seems to crash less frequently than with ESS and XEmacs
  • Project Explorer: This makes it easy to manage an R project with multiple files and folders (data, functions, coding files, etc). It also facilitates taking code from one project and incorporating it into another.
  • The way that the various Windows are interconnected: editor, console, queue, history, project explorer, etc.
  • Scope to expand: If I wanted to start programming in Java, or C, or some other programming language, I could stick with Eclipse.
Getting Started


  1. Hello World from Moldova!
    Nice article, very useful!
    I am new to R (i've been using Stata and I totally loved it) however I came across Sweave on the net and decided to try it on since I am very excited about "press a button and get a new written pdf provided that you have the new data in ur db and the script done"...
    But I did have some problems when integrating R in Eclipse. Specifically I could not manage installing the rj component in R. Can u help me on that?

  2. Hi Adrian,
    I'm still on 0.8; so I haven't had the need for rj yet. Perhaps try the StatET mailing list:

  3. This should help answer the RJ package question.