4. download the latest version of R: cd /home/sunyp/source wget https://mirrors.tuna.tsinghua.edu.cn/CRAN/src/base/R-3/R-3.4.3.tar.gz
5. install R tar -zxvf R-3.4.3.tar.gz -C ../build mkdir -p ../build/R-3.4.3 ./configure --prefix=/home/sunyp/softwares/build/R-3.4.3 --enable-R-shlib make make install 6. set PATH vi ~/.bash_profile add "PATH=$PATH:/home/sunyp/softwares/build/R-3.4.3/bin" to the file