Extracts selected fields from bbi_config.json, which is created by bbi
in the model output folder to store metadata about the execution of a model
run.
Arguments
- .base_dir
Base directory to look in for models.
- .recurse
If
FALSE, the default, only include models in.base_dirbut not subdirectories. This is passed through tofs::dir_ls()– IfTRUErecurse fully, if a positive number the number of levels to recurse.- .include
A character vector specifying which runs or model tags to include in the run log.
- .log_df
A
bbi_run_log_dftibble (the output ofrun_log()).
Value
An object of class bbi_config_log_df, which includes the fields described below.
If no bbi_config.json files are found, the returned tibble will only contain the
absolute_model_path and run columns, and will have 0 rows.
config_log() creates a new tibble with one row per bbi_config.json
found in .base_dir (and subdirectories, if .recurse = TRUE).
add_config() adds these fields to the tibble passed to .log_df.
Details
The following fields from are extracted from bbi_config.json.
absolute_model_path: the path to the model file, excluding the file extensionmodel_md5: the MD5 sum of the model filedata_path: the path to the data file, relative to the model's output directory (which can be extracted viaget_output_dir())data_md5: the MD5 sum of the data filebbi_version: the version of bbi last used to run the modelnm_version: the version of NONMEM last used to run the modelmodel_has_changed: a logical indicating whether the model file has changed since it was last rundata_has_changed: a logical indicating whether the data file has changed since the model was last run
