userQuery {reposTools}R Documentation

A function to query the user for input

Description

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.

Usage

userQuery(msg, allowed = c("yes", "y", "no", "n"))

Arguments

msg The output message
allowed Allowed input from the user

Value

The input from the user

Author(s)

Jeff Gentry

Examples






[Package reposTools version 1.8.0 Index]