Skip to contents

inspect_experiment_file() reads and prints the content of a BehaviorSpace experiment XML file. This is useful for debugging and understanding the structure of the experiment file.

Usage

inspect_experiment_file(file)

Arguments

file

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

Value

An invisible NULL. This function is used for its side effect.

See also

Other Utility functions: 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">
#>     <setup>setup</setup>
#>     <go>go</go>
#>     <timeLimit steps="1"></timeLimit>
#>     <metric>count turtles</metric>
#>     <metric>count patches</metric>
#>   </experiment>
#> </experiments>