Mac OS X Yosemite中的NetLogo R扩展安装错误 [英] NetLogo R Extension Installation Error in Mac OS X Yosemite
问题描述
我在安装NetLogo的R扩展时遇到问题。我正在使用NetLogo 5.05和扩展版本1.3,它应该适用于R 3.0或更高版本。我的R版本是3.1.2。
I am having problems installing the R extension for NetLogo. I'm using NetLogo 5.05 and version 1.3 of the extension, which is supposed to work with R version 3.0 or higher. My version of R is 3.1.2.
按照页面,我更改了NetLogo应用程序中的.plist文件,使其指向jri和我的R安装:
Following the instructions from this page, I have changed the .plist file within the NetLogo app so that it points to jri and to my R installation:
<key>NSJavaRoot</key>
<string>..</string>
<key>LSEnvironment</key>
<dict>
<key>JRI_HOME</key>
<string>/Library/Frameworks/R.framework/Resources/library/rJava/jri</string>
<key>R_HOME</key>
<string>/Library/Frameworks/R.framework/Resources</string>
</dict>
</dict>
</plist>
在我的代码中添加 extensions [r]
选项卡导致错误:
Adding extensions [r]
to my code tab causes the error:
R-Extension中的错误:runOnce中的错误:java.lang.NullPointerException
Error in R-Extension: Error in runOnce: java.lang.NullPointerException
开发人员页面说明了NetLogo 5仍然是测试版,但如果我使用r 2.15及其早期版本的NetLogo和扩展程序进行尝试,我会遇到同样的问题。我估计我所遵循的指示是针对Mountain Lion的,但我想知道这是不是问题。谁设法让Yosemite的扩展工作?
The developer page says that the version for NetLogo 5 is still a beta, but I get the same problem if I try it with r 2.15 and earlier versions of both NetLogo and the extension. I reckon that the instructions that I'm following are for Mountain Lion, but I wonder if that is the problem. Anyone out there who has managed to get the extension working on Yosemite?
推荐答案
设置R的环境变量:一个R.dll和R.exe应该在C:\Program Files \R\R-3.0.1 \ bin \ x64中找到(取决于步骤1中的路径:下载并安装R),
Set environment variables for R: an R.dll and R.exe should be found in C:\Program Files\R\R-3.0.1\bin\x64 (depends on the path in step 1: Download and install R),
首先将R_HOME变量设置为C:\Program Files \ R \ R-3.0.1。
Set at first the R_HOME variable to C:\Program Files\R\R-3.0.1.
现在,通过%R_HOME%/ bin / x64(或直接通过C:\Program Files \ R \ R-3.0.1 \\\ x64)附加PATH变量。
Now, append the PATH variable by %R_HOME%/bin/x64 (or directly by C:\Program Files\R\R-3.0.1\bin\x64).
您可以更详细地参考Netlogo R-exension的安装文档。
You can refer the install document of of Netlogo R-exension in more detail.
这篇关于Mac OS X Yosemite中的NetLogo R扩展安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!