【转】在CentOS 安装R语言

原文地址:http://blog.csdn.net/wangxianshou/article/details/8740282

安装顺序如下

1.root用户

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. su root  

2.# 旧バージョンを削除

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. yum erase R  

3.进入/root目录,并下载安装文件

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. cd /root  
  2. wget  http://cran.r-project.org/src/base/R-2/R-2.15.2.tar.gz  
[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. wget http://ftp.ctex.org/mirrors/CRAN/src/base/R-3/R-3.0.2.tar.gz  
  2. tar -xzvf R-2.15.2.tar.gz   
  3. cd R-2.15.2  

4.安装

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. ./configure   
  2. make  
  3. make install  
  4. make check  

5.环境设置

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. cd /usr/bin/  
  2. ln -s /usr/local/bin/R /usr/bin/R  
  3. ln -s /usr/local/bin/Rscript /usr/bin/Rscript  

6.进入R语言

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. R  

7.R分析用的包的装载(几个例子)

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. install.packages("ggplot2")      
  2.   
  3. # ggplot2 包的名字  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值