A function that asks a yes or no question to the user
See also
Other utils:
ask_yes_no()
,
bookdown_zenodo()
,
c_sort()
,
clean_git()
,
create_hexsticker()
,
execshell()
,
is_repository()
,
is_workdir_clean()
,
menu_first()
,
new_branch()
,
orcid2person()
,
store_authors()
,
use_author()
,
validate_email()
,
validate_orcid()
Author
Hadley Wickham Hadley@Rstudio.com
Largely based on devtools:::yesno()
.
The user gets three options in an random order: 2 for "no", 1 for "yes".
The wording for "yes" and "no" is random as well.
This forces the user to carefully read the question.