Skip to contents

inspect_experiment() reads and prints the content of a NetLogo BehaviorSpace experiment XML file to the R console. This is useful for debugging and verifying the structure of experiment files created by create_experiment().

For complete guidance on setting up and running experiments in NetLogo, please refer to the BehaviorSpace Guide.

Usage

inspect_experiment(file)

Arguments

file

A character string specifying the path to the BehaviorSpace experiment XML file.

Value

An invisible NULL. This function is called for its side effect of printing the XML content to the R console.

See also

Other BehaviorSpace functions: create_experiment(), read_experiment(), run_experiment()

Examples

file <- create_experiment(name = "My Experiment")

file |> inspect_experiment()
#> <experiments>
#>   <experiment name="My Experiment" repetitions="1" sequentialRunOrder="true" runMetricsEveryStep="false" timeLimit="1">
#>     <setup>setup</setup>
#>     <go>go</go>
#>     <metrics>
#>       <metric>count turtles</metric>
#>     </metrics>
#>   </experiment>
#> </experiments>