install r version 4.01 on ubuntu 18 code example Example: installing r on ubuntu 16.04 sudo apt-get install r-base