NLLoadModel function in R is not working as expected (NetLogo model should be loaded using R)

146 Views Asked by At

I am trying to load NetLogo model using RNetLogo package in R. But I am getting error, please find the details below:

Error: Error in NLLoadModel (absolute.model.path) :

and an error is popped up stating: Error in loading model:java.lang.reflect.InvocationTargetException

NetLogo Version used - 6.2.0 R version used - 4.1.0 System - Windows 10 (64-bit) Java - jdk1.8.0_291

Could anyone please guide me to get this issue fixed.

1

There are 1 best solutions below

0
On

I was able to fix this issue when I installed NetLogo 6.0.4 version and I was successfully able to load an existing NetLogo model from R. Hence under my analysis I got to know that using NetLogo 6.2.0 version we cannot load existing NetLogo model from R, whereas if we try the same with 6.0.4 version it is working fine. Please let me know if you have come across any other alternative way for this.