我在使用Ubuntu 12.04 LTS的电脑上工作,这台电脑有OpenFoam库。最近,我安装了R软件。我在R的安装过程中没有遇到任何问题。我发现的问题与运行R有关。当我在终端写R时,我明白了:
luke@glinux:~$ R
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.0
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.2.0-5be49240882f
Exec : R
Date : Mar 15 2014
Time : 10:56:27
Host : "glinux"
PID : 7525
Case : /home/luke
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
fileName::stripInvalid() called for invalid fileName UbuntuOne
For debug level (= 2) > 1 this is considered fatal
Aborted (core dumped)
为什么,当我想使用R时,终端是否会向我显示OpenFoam版本? 我该怎么做才能解决这个问题?
答案 0 :(得分:2)
您可以通过运行which -a R
或whereis R
来确定系统知道的R版本(以及默认情况下将使用的版本)。
如果要运行统计程序R而不是OpenFoam,可以运行/usr/bin/R
(填写系统的实际完整路径),或者为R设置别名:{{1} (感谢@XavierStuvw)