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().
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:
find_netlogo_console(),
find_netlogo_home(),
find_netlogo_version(),
parse_netlogo_list()
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>
#> <constants/>
#> </experiment>
#> </experiments>