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.


BenaroyaResearch/miscHelpers documentation built on April 13, 2025, 9:52 p.m.