gpt4 book ai didi

r - Ubuntu 中 R 和 Openfoam 之间的冲突

转载 作者:太空宇宙 更新时间:2023-11-03 16:52:44 25 4
gpt4 key购买 nike

我在一台装有 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 版本?我能做些什么来解决这个问题?

最佳答案

您可以通过运行 which -a Rwhereis R 了解系统知道的 R 版本(以及默认使用的版本)。

如果你想运行统计程序 R 而不是 OpenFoam 东西,你可以运行 /usr/bin/R(填写你系统的真实完整路径),或者设置一个R 的别名:alias R=/usr/bin/R(感谢@XavierStuvw)

关于r - Ubuntu 中 R 和 Openfoam 之间的冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22427169/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com