sure {mgi.report.reader} | R Documentation |
Are you sure?
Description
This function asks you interactively for permission to continue or not. You can specify a custom message before the question and also different messages for a both a positive and negative answer.
Usage
sure(
before_question = NULL,
after_saying_no = NULL,
after_saying_yes = NULL,
default_answer = NULL
)
Arguments
before_question |
String with message to be printed before question. |
after_saying_no |
String with message to be printed after answering
|
after_saying_yes |
String with message to be printed after answering
|
default_answer |
String with answer to question, if run in non-interactive mode. |
Details
If you run this function in non-interactive mode, you should pass an
automatic answer to default_answer
: 'yes'
or 'no'
.
Value
A logical indicating if answer was 'yes'
/'y'
(TRUE
) or otherwise (FALSE
).
[Package mgi.report.reader version 0.1.3 Index]