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.
RStudio
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:
<Alt>+<-> gives the assign operator <-
<Ctrl>+<Alt>+<Left/right arrow> switches between open files
<Ctrl>+<Space> gives autocomplete options
<Ctrl>+<Left/right arrow> 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:
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…
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:
<Alt>+<Tab> see how I set switch between editors/file
<Ctrl>+<Space> gives autocomplete options
<Ctrl>+<Left/right arrow> jumps one word
R-bloggers.com 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.