38

Any recommendations for a good Windows text editor for R?

I've been using Tinn-R, and it's been working reasonably well, but am curious to know what else people use.

15 Answers 15

19

This list is still pretty current, I think with one notable exception.

Check out R Studio, as well.

2
  • @HelloGoodbye I haven't used it in a while, but AFAICT R Studio is still free to all as long as you don't violate the AGPLv3 agreement. Unless I misread the agreement, any code you develop that doesn't incorporate part of R Studio is not a "covered work".
    – Ed Staub
    Sep 9, 2019 at 13:17
  • Hm, seems you were correct. I can't see that RStudio is free if I stick to the AGPLv3 agreement under pricing (which is where I had looked before I wrote my comment), but I have to go to the download page to get to see the pricing ("free"), which to me is a bit unintuitive. Sep 10, 2019 at 20:18
17

Emacs with ESS, which you can install via Vincent Goulet's prepackaged versions. No further configuration needed.

One really nice things about Emacs/ESS is that it behaves the same no matter which OS you are on, which makes switching a lot easier.

1
  • As of Emacs 24, you don't need the prepackaged version any more. You can just install it from melpa or marmalade.
    – bastibe
    Oct 30, 2012 at 12:14
10

I used Notepad++ with NppToR and found it quite lightweight and effective.

1
  • 1
    I just tried it. One minor issue is that while NppToR flags opening and closing parentheses and brackets, you don't see similar notification with brackets. If this issue were address, it would be much better.
    – andrewj
    Jul 27, 2009 at 18:15
9

Vim is usually a favorite.

3
7

I use Eclipse and StatET.

3
  • I just tried using Eclipse. However, the StatET can't be installed with the current version of Eclipse.
    – andrewj
    Jul 28, 2009 at 0:35
  • Right, one usually has to wait for a couple of months before all plug-ins have versions compatible with the latest Eclipse. Meanwhile you can grab the previous release ('Ganymede') and give it a go Jul 29, 2009 at 7:22
  • Just tried the newest version of StatET to go with Eclipse. Overall, Eclipse seems a bit heavy for my purposes. Still waiting for an editor that has great code highlighting and indentation.
    – andrewj
    Aug 13, 2009 at 14:23
7

Rstudio editor is the best I found so far. It has plots window,console and editor all custom split in one screen that I found incredibly useful. All the historical plots windows are neatly organised and very easy to do a comparison by flipping through it. Historical commands are saved and easy to execute.

http://rstudio.org/

6

Here's an archived list of IDE/script editors for R compiled by Philippe Grosjean.

The original link is now dead.

1
  • 1
    Alas, the list is a little bit out of date, from December 2007.
    – andrewj
    Jul 27, 2009 at 13:58
4

Zeus editor

1
  • 1
    That is up to the user to decide and is is free to try ;)
    – jussij
    Aug 14, 2009 at 0:42
2

SciTE supports R.

1
  • There is support for R, however, the lexer could be improved. Specifically, it flags e.g. "plot.df" as a keyword rather than an as an ordinary R object.
    – andrewj
    Jul 28, 2009 at 0:36
2

I use Tinn-R because it lets me step through my code, or just send bits of it to the R window, which I find incredibly useful. The ability to highlight a few lines and hit send just meshes well with my workflow habits. I'd love to find a similar tool for Python (I'm sure someone will tell me what it is). However the NPPtoR link looks very interesting and I will have to try that.

1
  • Take a loot at WingIDE for Python IDE.
    – joon
    Apr 7, 2013 at 19:44
1

Vim and emacs are the hardest to learn, but once you get used to one of them, you're most likely to stay with it for many many years

0

I switched from Tinn-R to Eclipse with the StatET plug-in.

0

My vote is for vim, because I can use it on all systems I can think of, both in graphical and terminal mode.

0

I use gvim. Not sure how popular that is with other Windows users, but the following set of utilities come in handy and can be used by any editor capable of binding keys/functions to commands:

http://code.google.com/p/batchfiles/

batchfiles contains batch (.bat) and javascript (.hta and .js) files useful in conjuction with R and R packages on Microsoft Windows. There is no formal installation, each consists of a single file and is independent of the others so just place any or all of them anywhere in your Windows path and you will be able to access them in any Windows console session.

In particular, the AutoHotKey scripts in that bundle are nice for sending selected text to an R console.

Not the answer you're looking for? Browse other questions tagged or ask your own question.