test_setting_lengths: Test whether settings are the correct length.

View source: R/test_setting_lengths.R

test_setting_lengthsR Documentation

Test whether settings are the correct length.

Description

Helper function called within update_settings to test whether the number of values provided for each setting are either of length 1 or the length of the flows or variables.

Usage

test_setting_lengths(diagram_settings, names, n)

Arguments

diagram_settings

The diagram_settings list.

names

The relevant list names for the test.

n

The number of values allowed, other than 1.

Value

A logical.


andreashandel/modeldiagram documentation built on July 31, 2023, 10:05 a.m.