Learn R Programming

RNetLogo (version 0.9.2)

NLLoadModel: Loads a model into the NetLogo instance.

Description

NLLoadModel loads a model (*.nlogo file) into the submitted NetLogo instance.

Usage

NLLoadModel(model.path, nl.obj=NULL)

Arguments

model.path
A string containing the path to the model file (*.nlogo file).
nl.obj
(optional) A variable holding a reference to a NetLogo instance created with NLStart.

Value

  • No return value.

See Also

NLStart, NLQuit

Examples

Run this code
nl.path <- "C:/Program Files/NetLogo 4.1.3"
NLStart(nl.path)
model.path <- "/models/Sample Models/Earth Science/Fire.nlogo"
absolute.model.path <- paste(nl.path,model.path,sep="")
NLLoadModel(absolute.model.path)

Run the code above in your browser using DataLab