read_yn: Prompt user for a yes or no answer Prompt the user for a yes...

Description Usage Arguments Value

View source: R/read_yn.R

Description

Prompt user for a yes or no answer Prompt the user for a yes or no answer, and repeat until an acceptable response is entered

Usage

1
read_yn(display_text)

Arguments

display_text

character string, the text to be displayed at the prompt.

Value

character, either 'y' or 'n'. Uppercase responses are converted to lowercase.


mjdufort/miscHelpers documentation built on Sept. 24, 2018, 7:09 p.m.