Skip to content

Default values provided to template

When calling submit_slurm_job several values are passed to the template file to be inserted. This guide summarizes the default information provided to the template. Using default arguments to submit_slurm_job the following values are provided to the slurm template file:

VariableDefault value
partitionsubmit_slurm_job argument
parallelTRUE if ncpu > 1, otherwise FALSE
ncpusubmit_slurm_job argument
job_namesprintf("%s-nonmem-run", basename(.mod$absolute_model_path))
project_pathhere::here()
project_namehere::here() %>% basename()
bbi_exe_pathSys.which("bbi")
bbi_config_pathgetOption("slurmtools.bbi_config_path")
model_path.mod$absolute_model_path
config_toml_pathpaste0(.mod$absolute_model_path, ".toml") required for using nmm
nmm_exe_pathSys.which("nmm")