bbi_init.RdExecutes 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 )
| .dir | Path to directory to run |
|---|---|
| .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 |
| .no_default_version | If |
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 directory specified in options("rbabylon.model_directory")
The working directory, if options("rbabylon.model_directory") is NULL
A path passed to the .config_path argument of the functions mentioned above
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.