R 4.1.2 Installation

Note:

This setup might update some of the older root level files and using Non-Oracle Yum Repository for getting R rpm files.
To install R 4.1.2, follow these steps:
  1. Set Proxy, (pseudo user):
    1. curl -O https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
    2. yum install epel-release-latest-7.noarch.rpm
    3. curl -O https://cdn.rstudio.com/r/centos-7/pkgs/R-${R_VERSION}-1-1.x86_64.rpm
    4. sudo yum install R-${R_VERSION}-1-1.x86_64.rpm
    5. sudo ln -s /opt/R/${R_VERSION}/bin/R /usr/bin/R
  2. Check installation:
    1. R --version