Install R on Linux

This instruction covers the steps required to install R on Ubuntu 20.04 (Focal Fossa). You can download the commands on Github.

1. Press Ctrl Alt T to open the terminal on Ubuntu.
2. Update the apt package index
3. Switch user to root user type
4. Install packages to allow apt to use a repository over HTTPS
5. Add the official GPG key for Ubuntu archives on CRAN to your system
6. Add the CRAN repository to your system sources' list
7. Install R
8. The installation may take a few minutes to complete
9. Verify the installation by running R