RNetlogo and NetLogo 5.3 error

那年仲夏 提交于 2019-12-01 00:46: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.

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)
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!