My two favorite IDE’s for R – tips & tricks

[This article was first published on G-Forge » R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

The two IDE that I use for R are RStudio and Eclipse with StatET. They complement each other nicely, RStudio works out of the box while I previously shown how to get Eclipse & StatET going, you can find it here, which is slightly challanging.


I use RStudio for all my statistics where I don’t want to create functions or more advanced programming. It’s great since it allows me to get immediate help, code completes the initiated variables. The settings are simple and you hardly need to do anything.

My favorite RStudio shortcuts:
+<-> gives the assign operator <-
++ switches between open files
+ gives autocomplete options
+ jumps one word

The main downside to RStudio is it’s lack of autocomplete inside functions. You can find a very nice “complete” manual here.

Eclipse with StatET

I use Eclipse for a lot of programming. I mostly program in R, Python, JavaScript and PHP. The advantage of having one IDE is that it’s faster to switch between the different “Perspectives“.

After you’ve set up Eclipse & StatET I recommend adding some tweaking. Open the Windows > Preferences:

Search for “editor“, remove the binding + and enter your own. I like + for next and ++ for previous editor.

Another setting that I like is using the R console proposals, you can find that in the same Preferences popup, make sure the “All R Console Proposals” is checked:

You also need to put some effort in getting the tools working. Click on the run box with a brick on it:

At first the list is pretty empty so you go into External Tools Configurations…

Now you need to setup the double click or click on the new icon to add the commands that you want to use:

Name the command and choose it from the drop-down list. Then go into R config tab:

And select the working directory for the command. This is important if the function creates new files because otherwise it tries to do that under the C:\Program\Eclipse folder and usually it will complain about not being allowed to do that.

These run tools are very convenient but remember to select the project in your Project Explorer or Eclipse will throw an error: Variable references empty selection ${resource_loc}. This is of course pretty obvious but I’ve found that Eclipse is very picky about the right window being highlighted and that sometimes you actually have to click twice on the project.

My favorite Eclipse shortcuts:
+ see how I set switch between editors/file
+ gives autocomplete options
+ jumps one word

To leave a comment for the author, please follow the link and comment on their blog: G-Forge » R. offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)