我在一台装有Ubuntu12.04LTS的pc上工作,这台电脑有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版本?我能做些什么来解决这个问题?
发布于 2017-02-09 21:35:42
通过运行which -a R或whereis R,您可以找出系统知道R的哪些版本(以及默认情况下将使用哪些版本)。
如果您想运行统计程序R而不是OpenFoam,您可以运行/usr/bin/R (填写系统的实际完整路径),或者为R:alias R=/usr/bin/R设置一个别名(感谢@XavierStuvw)
https://stackoverflow.com/questions/22427169
复制相似问题