Linux(centos7)上安装最新版R3.4.1

说来惭愧,居然没有在Linux安装R的经验,因为一直很少用R,用也是在win平台。

下载路径:https://cran.rstudio.com/src/base/R-3/

强烈建议不要安装最新的R,除非你有特殊需求,否则你会遇到一大堆问题(加载动态库、包兼容性)。

package 'rhdf5' is not available (for R version 3.2.5)

版本太低也不好,一般选择3.3就好了。

解压后,需要configure。

./configure --prefix=<YOUR_R_HOME> --with-readline=yes --with-libpng=yes --with-x=no

报错

checking whether zlib support suffices... configure: error: zlib library and headers are required

参考:Linux安装R记要

R-3.3.1源码安装


参考:

CENTOS7安装R语言环境(yum自动安装) 亲测可用

R-3.3.1源码安装(纯手动安装)

原文地址:https://www.cnblogs.com/leezx/p/7270739.html