Upgradation in Linux is pretty simple using terminal.
Step 1: Visit the list of CRAN Mirrors and search for the nearest URL of the mirror as per your location. Commands down below in the terminal assume you choose http://cran.wustl.edu/
Step 2: Enter the following commands in the terminal.
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo echo "deb http://cran.wustl.edu/bin/linux/ubuntu xenial/" |
sudo tee -a /etc/apt/sources.list
sudo apt update
sudo apt upgrade r-base r-base-dev
sudo apt update sudo apt upgrade
Caution:
Kindly make sure to install r-base and r-base-dev in case you have not, because these are also listed in the commands to upgrade for better convenience.
Command to install it:
sudo apt install r-base-dev
Step 3:
Restart R and run the command down below:
update.packages(checkBuilt=TRUE, ask=FALSE)
Now you can use it.