Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
498 views
in Technique[技术] by (71.8m points)

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

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Set environment variables for R: an R.dll and R.exe should be found in C:Program FilesRR-3.0.1inx64 (depends on the path in step 1: Download and install R),

Set at first the R_HOME variable to C:Program FilesRR-3.0.1.

Now, append the PATH variable by %R_HOME%/bin/x64 (or directly by C:Program FilesRR-3.0.1inx64).

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...