knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "README-"
)

Build Status AppVeyor Build Status CRAN_Status_Badge Coverage Status Join the chat at https://gitter.im/yesnorpackage/Lobby

yesno

R wrapper for https://yesno.wtf (Yes/No as a service).

Installation

You can install yesno using Dirk Eddelbeutel's drat package.

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

You can also install yesno from Github with:

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

Example

yesno::yesno(force = "yes")

RMarkdown

To embed the yesno()$image GIF in an RMarkdown document do something like the following.

cat(sprintf("![](%s)", yesno::yesno()$image))


MHenderson/yesno documentation built on May 3, 2024, 2:30 a.m.