Skip to contents

Parses parameter comments and returns structured metadata for theta, omega, and sigma parameters.

Usage

get_model_parameter_info(mod, lookup_path = NULL)

Arguments

mod

A hyperion_nonmem_model object or path to a run output directory containing an .lst file.

lookup_path

Optional path to a TOML lookup file. If provided, fills NULL fields (display, description, unit, parameterization) from the lookup.

Value

A ModelComments object containing theta, omega, and sigma comments.

Details

For model objects sourced from .mod/.ctl files:

  • if run status is "run", metadata is read from the corresponding .lst

  • otherwise ("not_run"/"running"), metadata is read from the model file

Comment Parsing

Comments are parsed by pharos according to the [nonmem.comments] section of pharos.toml. Set type = "type1" for strict structured comments, or type = "type2" for a more flexible structured grammar. See pharos documentation for accepted formats.