Asks a custom yes-no question with two responses (by default 'Yes' or 'No'). Returns a flag indicating which response the user choose. It is designed to be used in situations where a user needs to choose one of two affirmative options.
Details
The objects are first pasted without separators
and collapsed using [paste0](..., collapse = "")
before being output using cat()
.
Selection of a 0 (to exit) causes the code to throw an error.