create_model_hook: Perform model-type specific setup

View source: R/classes.R

create_model_hookR Documentation

Perform model-type specific setup

Description

This method is called by create_model_object() after it has created an object of type ⁠bbi_{type}_model⁠, and, if the caller requested writing the model yaml to disk, this method will be called before that.

Usage

create_model_hook(.mod, ...)

## Default S3 method:
create_model_hook(.mod, ...)

## S3 method for class 'bbi_nonmem_model'
create_model_hook(.mod, ...)

Arguments

.mod

Model object.

...

All but the first argument that was passed to create_model_object().

Details

Every ⁠bbi_{type}_model⁠ should define a ⁠create_model_hook.bbi_{type}_model⁠ method, even if no model-specific setup is required.


metrumresearchgroup/rbabylon documentation built on April 21, 2024, 3:26 a.m.