简体   繁体   English

Mac OS X Yosemite中的NetLogo R Extension安装错误

[英]NetLogo R Extension Installation Error in Mac OS X Yosemite

I am having problems installing the R extension for NetLogo. 我在为NetLogo安装R扩展程序时遇到问题。 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. 我正在使用NetLogo 5.05和扩展版1.3,应该与R 3.0或更高版本一起使用。 My version of R is 3.1.2. 我的R版本是3.1.2。

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: 按照此页面上的说明,我更改了NetLogo应用程序中的.plist文件,使其指向jri和R安装:

<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>

Adding extensions [r] to my code tab causes the error: extensions [r]添加到我的代码标签中会导致错误:

Error in R-Extension: Error in runOnce: java.lang.NullPointerException R扩展中的错误:runOnce中的错误:java.lang.NullPointerException

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. 开发人员页面说NetLogo 5的版本仍然是beta,但是如果我在r 2.15和NetLogo及其扩展的早期版本中尝试使用,都会遇到相同的问题。 I reckon that the instructions that I'm following are for Mountain Lion, but I wonder if that is the problem. 我认为我要遵循的指示适用于Mountain Lion,但是我想知道这是否是问题所在。 Anyone out there who has managed to get the extension working on Yosemite? 有人设法使扩展程序在优胜美地上工作了吗?

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设置环境变量:应该在C:\\ Program Files \\ R \\ R-3.0.1 \\ bin \\ x64中找到R.dll和R.exe(取决于步骤1:下载并安装R),

Set at first the R_HOME variable to C:\\Program Files\\R\\R-3.0.1. 首先将R_HOME变量设置为C:\\ Program Files \\ R \\ R-3.0.1。

Now, append the PATH variable by %R_HOME%/bin/x64 (or directly by C:\\Program Files\\R\\R-3.0.1\\bin\\x64). 现在,在PATH变量后面附加%R_HOME%/ bin / x64(或直接在C:\\ Program Files \\ R \\ R-3.0.1 \\ bin \\ x64后面)。

You can refer the install document of of Netlogo R-exension in more detail. 您可以更详细地参考Netlogo R-exension的安装文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM