NetLogo R Extension Installation Error in Mac OS X Yosemite

寵の児 提交于 2019-11-28 06:15:06

问题


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.

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>

Adding extensions [r] to my code tab causes the error:

Error in R-Extension: Error in 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. 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?


回答1:


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

Set at first the R_HOME variable to 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).

You can refer the install document of of Netlogo R-exension in more detail.



来源:https://stackoverflow.com/questions/27190975/netlogo-r-extension-installation-error-in-mac-os-x-yosemite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!