R is a programming language and software environment for statistical computing widely used among statisticians and data miners for developing statistical software and data analysis.
INSTALLATION OF R ON UBUNTU
To obtain the latest package of R, in your /etc/apt/sources.list file add an entry like:
deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu wily/
At the place of wily you have to write your own ubuntu version:
- Wily for ubuntu release 15.10
- Vivid for 15.04
- Trusty for 14.04(LTS) and
- Precise for 12.04(LTS)
Replace <my.favorite.cran.mirror> by the actual URL of your favorite CRAN(Comprehensive R Archive Network) mirror. You can choose your favorite mirror accordingly from https://cran.r-project.org/mirrors.html.
For an example I chose USA,CA.
Now to install the complete R system, first update your system by running the following command in terminal:
sudo apt-get update
After updating your system run the following command in order to compile the complete R system from source:
sudo apt-get install r-base-dev
and you are good to go. By just writing ‘R'(without quotes) in terminal you can have the command line interface of R in front of you.
One thought on “R -statistical computing”