I am writing a function in R and managing error handling (I specifically added few warning messages).
I am wondering if there is there a way to create a question "Do you want to continue?" that would pop up in R Console each time a warning appears? In order to proceed the user would have to type "Y" (yes) in the console. Something similar to swirl functionality.
The goal is to make sure user saw the warning message and consciously wants to continue.
Any hint would be much appreciated. Thank you!