yesno v0.1.0

0

Monthly downloads

0th

Percentile

Ask Yes-No Questions

Asks Yes-No questions with variable or custom responses.

Readme

lifecycle Travis-CI Build
Status AppVeyor Build
Status codecov License:
GPL2 CRAN\_Status\_Badge CRAN
Downloads

yesno

Introduction

Provides two functions.

The first, yesno(), asks a custom yes-no question with three variable responses.

The order and phrasing of the possible responses varies randomly to ensure the user consciously chooses (as opposed to automatically types their response).

The second, yesno2(), ask a yes-no question with two custom responses.

Demonstration

yesno("Do you like ", R.Version()$nickname ,"?")
Do you like Bug in Your Hair?
1: Definitely
2: No way
3: No

Selection: 1
[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
[1] FALSE

> yesno2("Do you like this question?", yes = "I really do")
Do you like this question?
1: I really do
2: No

Selection: 1
[1] TRUE

Installation

To install the latest development version from GitHub

# install.packages("devtools")
devtools::install_github("poissonconsulting/yesno")

Alternatively install the latest development version from the Poisson drat repository using

# install.packages("drat")
drat::addRepo("poissonconsulting")
install.packages("yesno")

Citation


To cite package 'yesno' in publications use:

  Hadley Wickham and Joe Thorley (2018). yesno: Ask Yes-No
  Questions. R package version 0.0.3.
  https://github.com/poissonconsulting/yesno

A BibTeX entry for LaTeX users is

  @Manual{,
    title = {yesno: Ask Yes-No Questions},
    author = {Hadley Wickham and Joe Thorley},
    year = {2018},
    note = {R package version 0.0.3},
    url = {https://github.com/poissonconsulting/yesno},
  }

Contribution

Please report any issues.

Pull requests are always welcome.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Inspiration

  • The yesno() function is based on the internal function with the same name from devtools (modified to return TRUE if the user answers yes).

Functions in yesno

Name Description
yesno Yes No with Variable Responses
yesno2 Yes No with Two Custom Responses
No Results!

Last month downloads

Details

Date 2018-04-14
License GPL (>= 2)
URL https://github.com/poissonconsulting/yesno
BugReports https://github.com/poissonconsulting/yesno/issues
Encoding UTF-8
LazyData true
RoxygenNote 6.0.1
NeedsCompilation no
Packaged 2018-04-14 19:31:49 UTC; joe
Repository CRAN
Date/Publication 2018-04-14 19:58:05 UTC
suggests covr , testthat
depends R (>= 3.1.0)
imports utils
Contributors Hadley Wickham

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/yesno)](http://www.rdocumentation.org/packages/yesno)