Skip to content

Instantly share code, notes, and snippets.

@rpietro
Created September 6, 2013 11:03
Show Gist options
  • Save rpietro/6462404 to your computer and use it in GitHub Desktop.
Save rpietro/6462404 to your computer and use it in GitHub Desktop.
error with RNetLogo
sessionInfo()
# R version 3.0.1 (2013-05-16)
# Platform: x86_64-apple-darwin10.8.0 (64-bit)
# locale:
# [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
# attached base packages:
# [1] stats graphics grDevices utils datasets methods base
Sys.setenv(NOAWT=1)
library(RNetLogo)
nl.path <- "/Applications/NetLogo 5.0.2"
NLStart(nl.path, nl.version = 5)
model.path <- "/Applications/NetLogo 5.0.2/models/Sample Models/Earth Science/Fire.nlogo"
NLLoadModel(paste(model.path, nl.path , sep=""))
NLCommand("setup")
NLDoCommand(10, "go")
burned <- NLReport("burned-trees")
print(burned)
NLQuit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment