getvalidinput: getvalidinput

Description Usage Arguments Value Author(s)

View source: R/prob.R

Description

Given a prompt and acceptable inputs, query user for input until they enter an acceptable value.

Usage

1
getvalidinput(prompt, error, validinput = NULL, low = 0, high = 0)

Arguments

prompt

String shown to users to prompt for input.

error

Error string shown when user enters an invalid selection.

validinput

If non-NULL, only accept input in this list.

low

Only accept numeric values above this value.

high

Only accept numeric values below this value. If low>=high, do not accept any numeric input not explictly in validinput.

Value

Acceptable user input.

Author(s)

Josh Errickson


zkeller89/plots250 documentation built on May 6, 2019, 12:04 a.m.