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.
install_r_ubuntu_1-msahebhonar.com
2. Update the apt package index
install_r_ubuntu_2-msahebhonar.com
3. Switch user to root user type
install_r_ubuntu_3-msahebhonar.com
4. Install packages to allow apt to use a repository over HTTPS
install_r_ubuntu_4-msahebhonar.com
5. Add the official GPG key for Ubuntu archives on CRAN to your system
install_r_ubuntu_5-msahebhonar.com
6. Add the CRAN repository to your system sources' list
install_r_ubuntu_6-msahebhonar.com
7. Install R
install_r_ubuntu_7-msahebhonar.com
8. The installation may take a few minutes to complete
install_r_ubuntu_8-msahebhonar.com
9. Verify the installation by running R
install_r_ubuntu-9-msahebhonar.com