param_labels: Extract parameter labels for report tables, etc.

Description Usage Arguments Details

View source: R/param-labels.R

Description

Parse parameter labels from the model object. Currently this parses labels from comments in the control stream, However it will be extended to parse labels from the model YAML file as well. The syntax for the labeling is described in "Details" below.

Usage

1
2
3
4
5
6
7
param_labels(.mod, ...)

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

## S3 method for class 'character'
param_labels(.mod, ...)

Arguments

.mod

Character scaler of the raw control stream with newline character separating lines

...

arguments passed through (currently to nowhere)

Details

This function will *not* return indices for the parameters, though they can be added with param_labels() %>% apply_indices(). See the apply_indices documentation for more details.

The syntax for parsing labels from comments is inherited from the "Census" specification that was also used in the 'tidynm' and 'mrgtable' packages. The syntax is as follows, with everything after the comment character ';' parsed into the label.

<nonmem_inits> ; [directive] <Parameter name <LOGD>>


metrumresearchgroup/mrgvalidatetestreference documentation built on Aug. 15, 2021, 8:13 a.m.