Installation of R programming language in pretty straight forward on Linux. Installation for windows can be found
here.
Install R on Ubuntu
The Ubuntu archives on CRAN are signed with the key ID 0x51716619e084dab9. It has to be added before installation. To add the key to your system execute following commands:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/'
To install the complete R system, use
sudo apt-get update
sudo apt-get install r-base
Users who need to compile R packages from source [e.g. package maintainers, or anyone installing packages with install.packages()] should also install the r-base-dev package first:
sudo apt-get install r-base-dev
Test your installaion by issuing command
sudo -i R
Install R on CentOS
Installation of R programming language on CentOS is simple just execute the following command and you are good to go.
sudo yum install R
If you want to install additional packages issue following command and select the package of your choice.
yum list R-*