Download and Install R in Ubuntu

March 30, 2013

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

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


  1. Ubuntu Packages for R

To leave a comment for the author, please follow the link and comment on their blog: Analysis with R. 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


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)