R is an open-source language and environment for data analysis and statistical computing. To install R in Ubuntu Linux, open a terminal (press Ctrl + Alt + T) and run:
wget https://raw.githubusercontent.com/tchu11/teach/master/r.sh
sudo chmod 750 r.sh
./r.sh
Scripts are distributed under the terms of the GNU General Public Licence, version 3.