简体   繁体   中英

NetLogo R Extension Installation Error in Mac OS X Yosemite

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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