Note this this function is used internally and was written to merge Rxs trees (hence the name), so it may not fit other use cases: for example, when merging two leaf nodes with the same name and path, if the value attribute is a list, those lists are combined using base::c().

mergeTrees(tree1, tree2, spaces = 2, silent = metabefor::opts$get("silent")) ## Arguments tree1, tree2 The trees to merge. spaces The number of spaces to use in messages (if silent = metabefor::opts$get("silent"))

silent

Whether to be silent or chatty.

## Value

The merged tree, a (cloned) data.tree

Node object.