Skip to content

Generating NONMEM monitor config file

This guide describes how to create a NONMEMmonitor (nmm) configuration toml file using the generate_nmm_config function.

Prerequisites

  1. nmm installed
  2. nmm specific template file

Generating a nmm config

Here’s the code you’ll use to generate a config.toml file.

generate_nmm_config.R
library(slurmtools)
library(bbr)
mod <- bbr::read_model(file.path("cluster-data", "user-homes", "user","slurmtools","model","nonmem", "1001"))
generaate_nmm_config(
mod,
watched_dir = "/cluster-data/user-homes/user/slurmtools/model/nonmem",
output_dir = "/cluster-data/user-homes/user/slurmtools/model/nonmem/in_progress"
)

This function call will generate a 1001.toml file with the following contents

1001.toml
model_number = '1001'
watched_dir = '/cluster-data/user-homes/user/slurmtools/model/nonmem'
output_dir = '/cluster-data/user-homes/user/slurmtools/model/nonmem/in_progress'

Submitting a NONMEM job

You can then use submit_slurm_job as normal!

Next steps

For more advanced usage: If you’re interested in learning how to use non-default arguments with submit_slurm_job for more customized job submissions, please check out our generate_nmm_config Reference Guide! If you’d like to integrate notifications with nmm please see the nmm alerter configuration guide