【发布时间】:2016-06-09 09:11:46
【问题描述】:
类似于this 没有有效答案的问题。
我正在尝试在 linux redhat 6.6 上使用 Rscript,但是 Rscript 使用了不正确的 R 版本。如何让 Rscript 使用最新的 R 版本?
运行Rscript --version 产生
R scripting front-end version 2.13.0 (2011-04-13)
而运行R 产生:
R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R 和 Rscript 上的 Whereis 产生以下结果:
[]$ whereis R
R: /usr/local/bin/R
[]$ whereis Rscript
Rscript: /usr/local/bin/Rscript
产生以下结果:
[rd02@ipgrd02 ~]$ which Rscript
/usr/local/bin/Rscript
[rd02@ipgrd02 ~]$ which R
/usr/local/bin/R
rpm -qa |egrep ^R 产生以下结果:
[rd02@ipgrd02 ~]$ rpm -qa | egrep ^R
Red_Hat_Enterprise_Linux-Release_Notes-6-en-US-6-2.el6.noarch
我认为这与 bashrc/bash_profile 有关,但我在 google 上找不到任何对我有帮助的东西。
【问题讨论】:
-
添加了更多信息
-
我仍然需要答案
标签: r linux .bash-profile rscript