Saturday, 30 March 2013

R: Download and Installation in Ubuntu

There are two ways to install R in Ubuntu. One is through the terminal, and the other is through the Ubuntu Software Center.

Through the Terminal
  • Press Ctrl+Alt+T to open the Terminal;
  • then execute sudo apt-get update; after that,
  • run sudo apt-get install r-base;
To run R, execute R in the Terminal (see the picture below).

R statistical package in Ubuntu 12.10 Terminal

Through Ubuntu Software Center
  • Open Ubuntu Software Center;
  • search for r-base;
  • and click Install;
  • then run R by executing R in the Terminal.
Working in the Terminal would be inconvenient, so I suggest downloading a user-friendly interface. For example in Ubuntu, I recommend using RStudio IDE or RKWard KDE.
RStudio in Ubuntu 12.10 Dash

To install RStudio IDE, do the following:
  • Go to RStudio IDE download page;
  • click Download RStudio Desktop;
  • then click on the download link recommended for your system;
  • run the downloaded file (double click the file) to start the setup wizard;
  • click "Next" until "Finish".
To open RStudio IDE, search for RStudio in the Ubuntu dash.

To install RKWard KDE, do the following:
  • Open Ubuntu Software Center;
  • search for RKWard;
  • then click Install;
To open RKWard KDE, search for RKWard in the Ubuntu dash and hit Enter.

RKWard KDE in Ubuntu 12.10
Reference:
  1. Ubuntu Packages for R

No comments:

Post a Comment