choose_model: Set User Input for a List of Models

Description Usage Arguments Value Examples

View source: R/choose_model.R

Description

Choose model asks the user inside the console for input. Options are Exit, New Model, or one of a list of existing models. If no integer number was presented by the user an ERROR message will be created but no ERROR will be thrown. This way this can be inserted inside a loop.

Usage

1
choose_model(rivermodels)

Arguments

rivermodels

A list of named models

Value

Returns the user input as character vector, or an ERROR message.

Examples

1
2
choose_model(list())
choose_model(list(fake_river_model = 1))

KWB-R/kwb.flusshygiene documentation built on Oct. 30, 2019, 8:08 p.m.