Skip to contents

inspect_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().

Usage

inspect_experiment_file(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 console.

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>