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]
I suggest that you look in
C:\Users\username\AppData\Roaming\NetLogo\6.1\r(where "username" is, of course, your username.) This is where NetLogo installs theuser.propertiesfile for the extension. If you look atC:\Users\username\AppData\Roaming\NetLogo\6.1\extensions\r, you should find the extension itself. NetLogo changed where extensions are installed in 6.1.If you find the extension, but not
C:\Users\username\AppData\Roaming\NetLogo\6.1\r, you should create that directory and put theuser.propertiesfile there.You can find the details here: https://github.com/NetLogo/R-Extension#installing.