清华的R语言镜像链接:https://mirrors.tuna.tsinghua.edu.cn/CRAN/
tar -zvxf R-4.0.2.tar.gz
cd R-*
yum install -y gcc
yum install -y gcc-gfortran
yum install -y gcc-c++
yum install -y glibc-headers
yum install -y libreadline6-dev gfortran
yum install -y readline-devel
yum install -y wget libXt-devel
yum install -y fonts-chinese tcl tcl-devel tclx tk tk-devel
yum install -y mesa-libGLU mesa-libGLU-devel
yum install -y install bzip2-devel
yum install -y install xz-devel.x86_64
yum install -y install pcre-devel
yum install -y install libcurl
yum install -y install libcurl-devel
yum install -y texinfo.x86_64
yum install -y texlive-pdftex-doc.noarch
yum install -y texlive
yum install -y xorg-x11-server-Xvfb
yum install -y xorg-x11-fonts-75dpi
yum install -y xorg-x11-fonts-100dpi
yum install -y libXtst-devel
yum install -y libssh2-devel
yum install -y libgit2-devel
yum install -y mysql-devel
yum install pcre2-devel
./configure --enable-R-shlib=yes --with-tcltk --prefix=/usr/local/R
make
make install
/etc/profile
export R_HOME=/usr/local/R
PATH=$PATH:$R_HOME/bin