I have been using RNetLogo with NetLogo 5.2.1 without troubles. Now I am using NetLogo 5.3 and I get this error:
> library(RNetLogo)
> nl.path <- \
For NetLogo version 5.3.1 the following works if you want to start NetLogo up in headless mode from R on a Mac:
First, before loading the RNetLogo library, execute
Sys.setenv(NOAWT=1)
Then, execute the following:
library(RNetLogo)
setwd("/Applications/NetLogo 5.3.1/Java")
nl.path <- getwd()
NLStart(nl.path, gui = FALSE)
Change your line nl.path <- "/Applications/NetLogo 5.3/"
to nl.path <- "/Applications/NetLogo 5.3/app"
NetLogo has changed its directory structure; the netlogo jar file is now in an 'app' subdirectory.
You may also need to check the environment variables that you set up as part of the RNetLogo installation.