Skip to contents

There are two different ways how parameters and xml chunks sharing the same name are merged. Parameters will overwrite parameters with the same name in their daughter config. This means that subtemplates/subconfigs can be shared by different TOML configs and be parametrized according to their need. On the other hand, xml chunks with the same name are merged together as a list, this makes it possible for different subtemplates to define their own priors, operators or logs, which can be then put in a single point without replacing each other's structures. This makes it possible to build a BEAST2 XML.

Usage

parse_config(file, defaults = NULL)

Arguments

file

TOML config

defaults

parameters that will replace any other parameters from the default block

Value

list of processed XML chunks from this or any daughter config and the default parameter block