Provides two functions.
yesno(), asks a custom yes-no question with three variable
The order and phrasing of the possible responses varies randomly to ensure the user consciously chooses (as opposed to automatically types their response).
yesno2(), ask a yes-no question with two custom responses.
yesno("Do you like ", R.Version()$nickname ,"?") Do you like Bug in Your Hair? 1: Definitely 2: No way 3: No Selection: 1  TRUE yesno("Do you like ", R.Version()$nickname ,"?") Do you like Bug in Your Hair? 1: No way 2: Uhhhh... Maybe? 3: I agree Selection: 2  FALSE > yesno2("Do you like this question?", yes = "I really do") Do you like this question? 1: I really do 2: No Selection: 1  TRUE
To install the latest release from CRAN
To install the developmental version from GitHub
# install.packages("remotes") remotes::install_github("poissonconsulting/yesno")
Please report any issues.
Pull requests are always welcome.
Please note that the yesno project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.