groan: Function to return random dad joke

Description Usage Arguments Value Examples

View source: R/groan.R

Description

This function returns a random dad joke(s) from https://icanhazdadjoke.com. as a message and invisibly as a character.

Usage

1
groan(sting = TRUE)

Arguments

sting

Plays a joke sting after the joke. Sound from https://archive.org/details/Rimshot_254

Value

Invisibly returns a two item list with the first item holding the joke as a character and the second item containing the joke id as a character.

Examples

1
groan(sting = FALSE)

jhollist/dadjoke documentation built on March 3, 2021, 11:43 p.m.