What IDEs are available for R in Linux?

RIde

R Problem Overview


What good IDEs are there for R in Linux?

I've tried Rcmdr and Eclipse, but neither seems to have the same usability as Tinn-R in Windows. Are there any other options?

R Solutions


Solution 1 - R

A newcomer to the scene, which IMO looks very promising - and downright baller - relative to other existing IDEs like Rattle and JGR, is RStudio. It's free software, is cross-platform, looks very polished, and even has features like automatic refactoring.

Update 2012-04-12: I've been running it for a bit on our DB server, and I love that it's a web app that saves your sessions, resume-able from anywhere else. Plotting requires not only no X tunneling or png-writing but is easier to use than out-of-the-box R. Extremely easy to get up and running, and it comes with packages for Debian/Ubuntu (which I use).

The company/development is moving pretty fast, aiming to be the de facto standard IDE for all R users. If I'm gushing, it's probably because I was pleasantly surprised by the quality of the IDE after a long time of using sub-par IDEs, not just for R but for plenty of other languages. So this was a bit out of the blue. I still need more time to really dig into it but I like what I'm seeing so far.

Solution 2 - R

JGR isn't bad:

Most people I know rave about Emacs + ESS:

But it's not quite the same thing as Tinn-R.

Along different lines ...

If you're looking at a high level functions for data mining, then Rattle is an option:

and another high level app for interactive plotting:

Solution 3 - R

I have found that the Emacs-ESS combination is well worth the learning curve. I enjoy being able to:

  • have code and R console side by side
  • send the current line, paragraph, file, or function to the R console without touching the mouse
  • easily interact with R sessions on remote computers
  • enjoy all the editing abilities of Emacs

Here's the website for the project: http://ess.r-project.org/

Here's a helpful document about ESS in particular: http://www.demog.berkeley.edu/Refs/ess.pdf

Solution 4 - R

Brand new IDE out there (as of Feb 2011) is http://www.rstudio.org/. Seems very promising from what I've seen so far.

Solution 5 - R

Although Eclipse was mentioned by the OP, I do not know if he ment it with the StatET plugin.

Eclipse with StatET is a really great IDE besides e.g. EmacsSpeaksStatistics (ESS), but as in other environments the user have to learn it's the basic usage first. The only handicap of this IDE could be the relatively high resources requirements as based on Java, but this makes the program OS independent of course.


Why I really would suggest to take the time to learn use StatET efficiently (cauction: very subjective list!):

  • be able to run your code really fast and easily with comfigurable shortcuts (by Ctrl+r by default),
  • thanks to the script editor and running environment is heavily integrated, debuging and reviewing your code cannot be easier,
  • configurabled environments by default (e.g.: R scripts),
  • you may define templates for frequent commands and those's environment (e.g.: loop, if conditions etc),
  • highly customizable syntax highlight,
  • TeXlipse integrated to view and edit tex code with ease (LaTeX support for Eclipse),
  • Roxygen support for literate programming (very handy at package development to automatically generate Rd files (manuals) from inline comments),
  • easily extendable with othet Eclipse plugins (e.g.: spell checking, (SQL) database management, image viewer, running external programs like Sweave).

A nice guide to read is A Guide to Eclipse and the R plug-in StatET by Longhow Lam.

Solution 6 - R

Gedit + RGedit plugin + Snippets plugin

Solution 7 - R

You've suggested eclipse; there is a plugin called StatEt which work quite well (even Sweave is supported!).

Solution 8 - R

There is a KDE 4 based IDE called RKward. It's nice because of:

  • Workspace Browser
  • Integrating the R console
  • data.frames editor
  • Syntax colored editor
  • GUI frontend for installing CRAN packages

Solution 9 - R

If you are used to Eclipse, StatET (mentioned by mbq) is probably the right choice for you.

That being said I have a more exotic choice to offer that you might want to consider, if you like auto suggestion and pure syntax highlighting is not enough for you. At least for me auto completion of R-Code did not work with StatET.

Now I use Komodo Edit with Sciviews-K and R64. Sending Code from editor to R works really well and the editor offers auto-completion for R-Code which is really nice – in particular if you are new to R. I work on a Mac, but it should be easy to setup for Linux too.

I think it has lost some popularity because it wasn't to stable in the past, but at I feel it's much better now and it hardly crashes in my setup. So you might wanna give it a chance too.

EDIT: If you work on Mac Textmate with the corresponding R bundle might be interesting, too. Recently I am about to switch to Textmate. If you don't care about the $45 for textmate, it's probably the most stable choice I tested so far. But it's only available on a Mac. But hey I am really amazed by this editor (and as you can see I like testing setups ;).

EDIT: I realize this thread is still being read by someone, so I definitely need to mention RStudio. It came out of nowhere and quickly became the choice of a lot of people. And it's well deserved. It still has some bugs (like not being able to stop RSessions) but it has tremendous auto-complete with context help. But at least on my setup (Mac) it's more stable than StatET / Eclipse. Sweave and ROxygen is not really supported yet, but the developers are very active. Definitely worth trying.

EDIT II: Because it's fun to track this here's another edit. RStudio continues to win more and more users. The combination of RStudio, Roxygen2 and particularly knitr integration has likely been the largest contribution to this development. While Rstudio was rather used by applied users and in teaching and has improved to dramatically that there's isn't many situations in which another IDE / editor is a better choice. Being maried to ESS seems like to only valid reason left to not use it. Also the documentation of its ecosystem is just great. The latest: Package development by Hadley http://r-pkgs.had.co.nz/description.html and his advanced programming http://adv-r.had.co.nz/

Solution 10 - R

For my case, I would recommend RKward for linux, it is a KDE. I've been using RStudio in Windows, but when I switched to Ubuntu, I find RKward easy to use, and has a good interface.

enter image description here

You can create a data frame without coding it with data.frame() function.

enter image description here

Solution 11 - R

I strongly recommend learning emacs+ess, but for a more modern-looking interface you can try RKward: http://sourceforge.net/apps/mediawiki/rkward/index.php?title=Main_Page.

Solution 12 - R

I use Geany in combination with R. Geany provides a terminal in which one can start an R session and shortcuts an be defined in order to send highlighted text to the terminal.

www.geany.org

Solution 13 - R

RGedit, great tool if you're keen on GNOME default text editor. Lacks autocompletion in script mode, though... but you can define snippets in a separate plugin (Snippets)... You can send code directly to R session running in the terminal window, tabbed multiple R sesions, there are several GUI templates for common data analysis (t-test, correlation), long story short, take a look at:

http://sourceforge.net/projects/rgedit/

Few months ago (when I gave my blogging skills a try), I wrote a review for RGedit, here's a link (and a little bit of self-advertising): http://psy-stat.com/?p=12

EDIT:
Oh, and you can use Geany and set it up so you can send code chunks to R session... I've never done it, but I know it's manageable!

EDIT #2:
here's a helpful link: http://sgsong.blogspot.com/2010/08/integrating-r-with-geany.html

Solution 14 - R

This might be what you're looking for. It integrated Komodo and the SciViews package. I found it a bit too fiddley (I prefer vi) but if you're looking for a full blown IDE/editor for R in Linux it's pretty close to Tinn-R for Windows and it's written by the same guys!

Link: http://www.sciviews.org/SciViews-K/index.html

Solution 15 - R

Solution 16 - R

Emacs with ESS. Probably not as polished as Eclipse, but I do like it.

Solution 17 - R

Personnaly, I use gedit and my console. It works great :)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionpufferfishView Question on Stackoverflow
Solution 1 - RYangView Answer on Stackoverflow
Solution 2 - RarsView Answer on Stackoverflow
Solution 3 - RChristopher DuBoisView Answer on Stackoverflow
Solution 4 - RScottView Answer on Stackoverflow
Solution 5 - RdaroczigView Answer on Stackoverflow
Solution 6 - RaL3xaView Answer on Stackoverflow
Solution 7 - RmbqView Answer on Stackoverflow
Solution 8 - Rdz.View Answer on Stackoverflow
Solution 9 - RMatt BannertView Answer on Stackoverflow
Solution 10 - RAl-Ahmadgaid AsaadView Answer on Stackoverflow
Solution 11 - RIsta ZahnView Answer on Stackoverflow
Solution 12 - RbalduinView Answer on Stackoverflow
Solution 13 - RaL3xaView Answer on Stackoverflow
Solution 14 - RDavid Lawrence MillerView Answer on Stackoverflow
Solution 15 - RpufferfishView Answer on Stackoverflow
Solution 16 - RstevejbView Answer on Stackoverflow
Solution 17 - RGuillaume LebourgeoisView Answer on Stackoverflow