centos7中安装R

 

方法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、

 

posted @   小鲨鱼2018  阅读(119)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2023-01-16 硬盘sata接口和m.2接口
2023-01-16 几种常见的主板类型
2022-01-16 linux shell中自定义函数简单例子
点击右上角即可分享
微信分享提示