Description Usage Arguments Value Warning Author(s) See Also Examples
Quits the NetLogo workspace and closes the GUI window (if started with GUI).
1 |
nl.obj |
(optional) A string identifying a reference to the NetLogo instance defined in |
all |
(optional) A boolean variable: If |
No return value.
please note that you will not be ask to save changes when closing NetLogo.
Furthermore, there is currently no way to kill a NetLogo instance with GUI completely. After executing NLQuit
on a GUI instance, you can't run NLStart
again.
You have to quit your R session first and start a new one.
The reason is that NetLogo quits via System.exit (and has no functionality to quit all threads manually) but executing System.exit will terminate the whole JVM which will also terminate rJava and finally R. But there is a trick to run RNetLogo in GUI mode multiple times described in the document parallelProcessing.pdf
in directory parallelProcessing
in the installation directory of the package.
It can happen that some memory is not released although you have executed NLQuit
, because shutting down the running JVM via rJava and unloading the required libraries is not possible.
Therefore, it is a good idea to start a new R session if possible when you load a new model.
Jan C. Thiele <rnetlogo@gmx.de>
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.