Inspect a BehaviorSpace experiment XML file
Source:R/inspect_experiment_file.R
inspect_experiment_file.Rdinspect_experiment_file() reads and prints the content of a
BehaviorSpace experiment XML
file to the console. This is useful for debugging and verifying the
structure of experiment files created by
create_experiment().
Please refer to the BehaviorSpace Guide for complete guidance on how to set and run experiments in NetLogo.
Arguments
- file
A
characterstring 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 console.
See also
Other utility functions:
get_netlogo_shape()
Examples
file <- create_experiment(name = "My Experiment")
file |> inspect_experiment_file()
#> <experiments>
#> <experiment name="My Experiment" repetitions="1" sequentialRunOrder="true" runMetricsEveryStep="false" timeLimit="1">
#> <setup>setup</setup>
#> <go>go</go>
#> <metrics>
#> <metric>count turtles</metric>
#> <metric>count patches</metric>
#> </metrics>
#> </experiment>
#> </experiments>