Description Usage Arguments Value Author(s)
Given a prompt and acceptable inputs, query user for input until they enter an acceptable value.
1 | getvalidinput(prompt, error, validinput = NULL, low = 0, high = 0)
|
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. |
Acceptable user input.
Josh Errickson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.