Add a new component to sim file

addComponent(sim, component, parent = "<system name=\"paddock\"")

Arguments

sim

A character vector of sim

component

A character vec of new component

parent

A character string containing a regular expression to match parent component