RNetlogo and NetLogo 5.3 error

后端 未结 2 496
粉色の甜心
粉色の甜心 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)
    

提交回复
热议问题