Running R from Eclipse – StatET Features

February 23, 2016
By

(This article was first published on R – StudyTrails, and kindly contributed to R-bloggers)

In The previous blog we looked at how to install the StatET plugin that can be used to run R from eclipse. In This tutorial we will look at the various features of the plugin.

  1. Creating a New R Project or File. The plugin provides the following options Selection_146 We create a new R Project and a new R file.
    Selection_163
    When you create a new R file, you can specify a template to use for the new file. To modify the template go to Preferences as shown below
    Selection_147
  2. Before we run the new file, we start the R console. To understand how to create the R configuration for new console look at the previous blog entry
    Selection_137
  3. The R console window is visible at the bottom by default. Previous workspace is restored
    Selection_149
  4. There are five ways to run R code. The button to run them are on the toolbar at the top. The five options are :
    Use this command to run the entire file. Its like using the Source() command.
    Selection_153Highlight the line that you need to run and then click on this button.
    Selection_154

    Selection_152

    Selection_155

    Selection_156

  5. StatET provides an Object Browser. The browser is quite useful to see and drill down through the objects in R. It also lists all loaded packages.
    Selection_157Selection_158
  6. Here’s a really awesome way to look at data – the Data Viewer. Right click on the object and launch the Data Viewer.
    Screenshot 2016-02-23 22:07:58Selection_160
  7. If you are working with graphics then there is an inbuilt R Graphics window.
    Selection_162

Development with StatET becomes great fun once you start getting comfortable with the various features. Good Luck!

To leave a comment for the author, please follow the link and comment on their blog: R – StudyTrails.

R-bloggers.com offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...



If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Sponsors

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)