Calling wait_for_nonmem() will freeze the user's console until the model(s) have finished running.

wait_for_nonmem(.mod, .time_limit = 300, .interval = 5)

# S3 method for bbi_nonmem_model
wait_for_nonmem(.mod, .time_limit = 300, .interval = 5)

# S3 method for list
wait_for_nonmem(.mod, .time_limit = 300, .interval = 5)

Arguments

.mod

a bbi_nonmem_model object, or list of bbi_nonmem_model objects.

.time_limit

integer for maximum number of seconds in total to wait before continuing (will exit after this time even if the run does not appear to have finished).

.interval

integer for number of seconds to wait between each check.

Methods (by class)

  • wait_for_nonmem(bbi_nonmem_model): takes a bbi_nonmem_model object.

  • wait_for_nonmem(list): takes a list of bbi_nonmem_model objects.