Download and Install R 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 Terminal
  • Press Ctrl+Alt+T to open Terminal
  • Then execute sudo apt-get update 
  • After that, sudo apt-get install r-base
To run R statistical package, 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 through Terminal would be inconvenient, we suggest to download a user-friendly interface for R. For Ubuntu, we 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 for 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

No comments:

Post a Comment