groan {dadjokeapi}R Documentation

Function to return random dad joke

Description

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

Usage

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

groan(sting = FALSE)

[Package dadjokeapi version 1.0.2 Index]