I'm having a problem, while tying to make R-Extension work in netlogo. I have tried the following. Note that I'm trying this on Windows 10.
- Install NetLogo version 6.1.0 and R version 3.6.3
- Install the rJava in R
- Navigate to folder where NetLogo is stored and go to the 'app/extensions/r directory
- Open the 'user.properties' file with a text editor, (using Notepad)
- Edited r.home and jri.home.paths according to the returns in R of r.home() and system.file("jri", package = "rJava")
- After doing this I'm still getting the error number 1 message in Netlogo extension [r]
Step 1 to 3 seem correct but you don't have to do the steps after that. Just put the app folder pathway and jar file location into the command below (but obviously change the pathway to where the app folder and jar file are located on your own PC).
NLStart("C:\Program Files\NetLogo 6.2.0\app", gui = TRUE, nl.jarname = "netlogo-6.2.0.jar")
I have a full YouTube video showing this in more detail. GitHub link with all the code is in description of the YouTube video too.
https://youtu.be/zWMdaTEPTOc