-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathask_yes_no.Rd
47 lines (44 loc) · 1.11 KB
/
ask_yes_no.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/setup_project.R
\name{ask_yes_no}
\alias{ask_yes_no}
\title{Function to ask a simple yes no question}
\usage{
ask_yes_no(msg, default = TRUE, prompts = c("Yes", "No", "Cancel"), ...)
}
\arguments{
\item{msg}{
The prompt message for the user.
}
\item{default}{
The default response.
}
\item{prompts}{
Any of: a character vector containing 3 prompts corresponding to
return values of \code{TRUE}, \code{FALSE}, or \code{NA}, or
a single character value containing the prompts separated by
\code{/} characters, or a function to call.
}
\item{...}{
Additional parameters, ignored by the default function.
}
}
\description{
Function to ask a simple yes no question
}
\seealso{
Other utils:
\code{\link{author2df}()},
\code{\link{bookdown_zenodo}()},
\code{\link{c_sort}()},
\code{\link{create_hexsticker}()},
\code{\link{execshell}()},
\code{\link{menu_first}()},
\code{\link{orcid2person}()},
\code{\link{store_authors}()},
\code{\link{use_author}()},
\code{\link{validate_email}()},
\code{\link{validate_orcid}()},
\code{\link{yesno}()}
}
\concept{utils}