Download and Install R in Ubuntu

[This article was first published on Analysis with R, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

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 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.

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)