Wednesday, December 10, 2014

R Statistical Computing: Installing in Ubuntu



R is a free software environment for statistical computation and graphics.  It consists of a language plus a run-time environment with graphics, a debugger, access to certain system functions, and the ability to run programs stored in script files.

Steps to installing this on Ubuntu:

1. Uninstall Previous R-base installation

$ sudo apt-get remove r-base-core

2. Update Sources.List File

$ sudo gedit /etc/apt/sources.list

Add the following line: deb http://cran.rstudio.com/bin/linux/ubuntu precise/

3. Add the public keys

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
$ sudo add-apt-repository ppa:marutter/rdev

4. Install R-base

$ sudo apt-get update
$ sudo apt-get upgrade

$ sudo apt-get install r-base

5. Launch R-base

$ R

You should see something like that:

R version 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: i686-pc-linux-gnu (32-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

>

If you like this post, you could be interested in this other post: Sentiment Analysis on Twitter with R

No comments:

Post a Comment