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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…