Follow the steps here to install the latest open source R on CentOS or RHEL.
The minimum R version Teradata supports is 3.4.3. If you already have R version 3.4.3 and later installed, you can skip this section.
For additional information, refer to the official R Project site https://cloud.r-project.org/bin/linux/redhat/.
Install the Extra Packages for Enterprise Linux (EPEL) repository on CentOS or RHEL using yum.
sudo yum install epel-release
Install the latest R using yum.
sudo yum install R