tags:

views:

188

answers:

6

Hi,

I found this question from over a year ago, but I wonder if there's anthing new under the sun. Spedifically, I do not get along with Emacs so well...

p.s. I use eclipse for java and perl programming.

A: 

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

Guillaume Lebourgeois
any plugins added?
David B
No, there's syntax highlight for R out of the box :)
Guillaume Lebourgeois
Actually, there is a plugin: _RGedit_ http://sourceforge.net/projects/rgedit/
aL3xa
In practice, I'm using Eclipse only for package development and some more complex works; gedit + console tandem also works quite good and is much lighter. RGedit looked nice, but still ends with SEGFAULT too frequent for me.
mbq
+3  A: 

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

mbq
+1 testing it now...
David B
Eclipse is great because you can get, in your case, Java oriented distribution (or C++ and others) and StatET.
Roman Luštrik
no auto complete for R library functions. also, I can't see the help from eclipse (http://stackoverflow.com/questions/3396485/eclipse-help-wont-show-under-ubuntu)
David B
aL3xa
@aL3xa Emacs is... Emacs. Vim rules ;-)Eclipse also works on Windows, still SSH allows you to forward X, or even better to tunnel VPN.
mbq
Still Vim doesn't have ESS! There is a plugin for R, but not as feature-rich as ESS or StatET...
aL3xa
@aL3xa That's why I use eclipse -- good R support and no Emacs around.
mbq
+1  A: 

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.

ran2
+1 nice to know
David B
+2  A: 

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

aL3xa
I kind'a like RGedit, since it keeps things simple. But I have few issues with it: first, I can't get it to load automatically when I start gedit. I always have to check it under plugins. Second, I don't see where are all the nice features in your blog - all I have is the buttons and the console tab (which are nice, but where are all the other stuff). Third, I don't see how I can customize (or at least see) the keyboard shortcuts (especially for running code). Fourth and last, R help (e.g. `?hist`) shows inside the console and not as html, although the html option is set.
David B
+1 (forgot it earlier...)
David B
OK, that sounds like a bug/installation issue, you should definitely contact the author. Btw, I'm running rgedit v0.7.0.3 and gedit v2.30.3 on Arch Linux and rgedit starts automatically. "The nice features" are located in _R > Wizzards_ submenu. Keyboard shortcuts: _R > Configure R interface > Edit keyboard shortuts_ . Do I have to mention that they work fine for me. Fourth and the last: it's a "bug", mail the author, `htmlhelp` is deprecated, use `options(help_type = "html")`... I've mailed Dan about that issue a long time ago, I thought he fixed that by now...
aL3xa
Btw, you're talking about some basic stuff... in fact, so basic that it makes me wonder if we're at all discussing the same plugin! =)
aL3xa
+1 Thank you aL3xa. We are talking about the same plugin. Now the only thing is still a mystery is how to make the plugin load automatically.
David B
Which distro are you using? Where did you "installed", i.e. unpacked rgedit archive? `.gnome2/gedit/plugins/`, right?
aL3xa
A: 

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

stevejb
A: 

RGedit looked nice, but still ends with SEGFAULT too frequent for me. – mbq

What do you mean by this? What kind of SEGFAULT? Could you please give more details (if possible, on rgedit's sourceforge site)?

Thanks, danded (developer of rgedit)

danded