RNetLogo not working on macOS Sierra and Windows

Viewed 392

I am using macOS Sierra and R version 3.4.1 and java version "1.8.0_144". I am trying a simple example adapted from the RNetLogo manual:

require(RNetLogo)
require(tidyverse)
require(extrafont)
loadfonts()

nl.path <- "/Applications/NetLogo 6.0.1"
NLStart(nl.path)
model.path <- "/models/Sample Models/Earth Science/Fire.nlogo"
absolute.model.path <- paste(nl.path,model.path,sep="")
NLLoadModel(absolute.model.path)

But the command NLLoadModel gives the following error:

Error in .jcall(nl.obj, "V", "loadModel", .jnew("java/lang/String", model.path)) : 
  RcallMethod: invalid object parameter

This also happens in Windows also with Java version 1.8.

1 Answers
Related