Skip to contents

This function continuously prompts the user with a message asking whether they want to continue. It accepts either 'Y' (for Yes) or 'N' (for No) as valid inputs. The function will keep prompting the user until they provide valid input.

Usage

ask_user_continue(msg)

Arguments

msg

A character string containing the message to display to the user before the prompt.

Value

A logical value: TRUE if the user inputs 'Y' (Yes), and FALSE if the user inputs 'N' (No).