check: Checking for issues

View source: R/issues.R

checkR Documentation

Checking for issues

Description

This function checks a model for existing issues.

Usage

check(model)

Arguments

model

Model to check

Details

The function accepts a model object and returns a list of issues that can help to identify problems in a model. If no issues are found, a message and an empty list are produced. Issues can either be critical or non-critical, depending on whether a valid model could still be rendered.

The function currently detects the following issues:

  • Undefined variables

  • Lack of parameters

  • Lack of observations

  • Lack of distribution/elimination components (pk_model)

  • Inconsistent capitalization of variable names

Value

An issue list (printed to the console by default)

Examples

m <- model() +
    prm_log_normal("emax") +
    prm_log_normal("ed50") +
    obs_additive(eff~emax*dose/(ed50+dose))
check(m)

# fix issue
m <- m + input_variable("dose")
check(m)

sebastianueckert/assemblerr documentation built on Sept. 30, 2022, 9:12 a.m.