Function to ask a simple yes no question
Usage
ask_yes_no(msg, default = TRUE, prompts = c("Yes", "No", "Cancel"), ...)
Arguments
- msg
The prompt message for the user.
- default
The default response.
- prompts
Any of: a character vector containing 3 prompts corresponding to return values of
TRUE
,FALSE
, orNA
, or a single character value containing the prompts separated by/
characters, or a function to call.- ...
Additional parameters, ignored by the default function.
See also
Other utils:
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()
,
yesno()