views:

3029

answers:

13

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.

+2  A: 

SciTE supports R.

Andrew Hare
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
+6  A: 

Vim is usually a favorite.

samoz
I just started using Vim on Windows, and so far so good.
andrewj
+2  A: 

Emacs is usually a favorite.

samoz
+10  A: 

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.

Dirk Eddelbuettel
+4  A: 

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

pageman
Alas, the list is a little bit out of date, from December 2007.
andrewj
+1  A: 

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

Thierry
+2  A: 

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

AWB
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
+1  A: 

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.

kpierce8
A: 

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.

ars
A: 

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

gappy
+3  A: 

I use Eclipse and StatET.

Yann Abraham
I just tried using Eclipse. However, the StatET can't be installed with the current version of Eclipse.
andrewj
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
Yann Abraham
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
A: 

Zeus editor

jussij
Is it worth $69.95?
andrewj
That is up to the user to decide and is is free to try ;)
jussij
A: 

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