RNetlogo and NetLogo 5.3 error

后端 未结 2 493
粉色の甜心
粉色の甜心 2021-01-07 02:48

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 <- \         


        
相关标签:
2条回答
  • 2021-01-07 03:16

    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)
    
    0 讨论(0)
  • 2021-01-07 03:35

    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.

    0 讨论(0)
提交回复
热议问题