方法1, 从外源库中安装
001、系统
[root@PC1 home]# cat /etc/redhat-release ## 系统,centos 7.6 CentOS Linux release 7.6.1810 (Core)
002、测试R
[root@PC1 home]# R ## 测试R bash: R: command not found...
003、安装epel外源库
[root@PC1 home]# yum -y install epel-release ## 安装epel外源库
004、利用yum 直接安装R
[root@PC1 home]# yum -y install R ## 利用yum直接安装R
005、测试R
[root@PC1 home]# R ## 测试R, 版本为3.6.0 R version 3.6.0 (2019-04-26) -- "Planting of a Tree" Copyright (C) 2019 The R Foundation for Statistical Computing Platform: x86_64-redhat-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.
方法2:根据安装包来安装
参考:
01、https://www.mryunwei.com/300154.html
02、
标签:help,##,root,PC1,centos7,home,安装 From: https://www.cnblogs.com/liujiaxin2018/p/17968501