installing r on ubuntu 16.04

C++
sudo apt-get install r-base

Source

Also in C++: