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

View source: R/read_yn.R

read_ynR Documentation

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

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

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 Feb. 4, 2024, 7:44 p.m.