Executes bbi init ... in specified directory. This creates a babylon.yml file, which contains defaults for many configurable babylon settings, in that directory.

bbi_init(
  .dir,
  .nonmem_dir,
  .nonmem_version = NULL,
  .no_default_version = FALSE
)

Arguments

.dir

Path to directory to run init in (and put the resulting babylon.yml file)

.nonmem_dir

Path to directory with the NONMEM installation.

.nonmem_version

Character scalar for default version of NONMEM to use. If left NULL, function will exit and tell you which versions were found in .nonmem_dir

.no_default_version

If TRUE, force creation of babylon.yaml with no default NONMEM version. FALSE by default, and using TRUE is not encouraged.

Details

For rbabylon to make any calls out to bbi (for example in submit_model() or model_summary()) it must find a babylon.yml file in one of the following places:

The recommended behavior is to set options("rbabylon.model_directory"), ideally in your .Rprofile, and then call bbi_init(.dir = getOption("rbabylon.model_directory"), ...). This only has to be done once.