Parses bbi_config.json files into a log tibble. This file is created by babylon and stores metadata about the execution of a model run.

config_log(.base_dir = get_model_directory(), .recurse = TRUE)

add_config(.log_df, ...)

Arguments

.base_dir

Base directory to look from bbi_config.json files in

.recurse

If TRUE, the default, search recursively in subdirectories.

.log_df

a bbi_run_log_df tibble (the output of run_log())

...

arguments passed through to config_log()

Details

config_log() will return a tibble with one row per bbi_config.json found.

add_config() takes a bbi_run_log_df tibble (the output of run_log()) as its input, searches for a bbi_config.json for each row in the input tibble, and joins on the data from the relevant config, if found. The returned tibble will have all of its input columns, plus all of the columns returned from config_log()

See also