Skip to contents

A function to ask a yes/no question and return Y/N after confirming [Stable]

Usage

askyn_confirm(question, default = TRUE)

Arguments

question

input Yes / No question

default

Optionally set the default response value

Value

Y/y or N/n

Examples

if (FALSE) {
ask_yn_confirm("Do you like coding?")
}