userQuery {reposTools} | R Documentation |
This function will output a given message and seek a response from the user, repeating the message until the input is from a valid set provided by the code.
userQuery(msg, allowed = c("yes", "y", "no", "n"))
msg |
The output message |
allowed |
Allowed input from the user |
The input from the user
Jeff Gentry