logical or NULL or raise an error. If "yes" is entered,
returns TRUE; if "no" is entered, returns FALSE; if "c" is
entered, error_if_canceled=TRUE will result in an error, otherwise
return NULL
Details
The prompt string will ask for an yes or no question. Users need to
enter "y", "yes" for yes, "n", "no" or no, and "c" for cancel
(case-insensitive).
# NOT RUN {if(interactive()){
ask_yesno('Do you know how hard it is to submit an R package and ',
'pass the CRAN checks?')
ask_yesno('Can I pass the CRAN check this time?')
}
# }