Learn R Programming

dadjokeapi (version 1.0.2)

groan: 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

Run this code
# NOT RUN {
groan(sting = FALSE)
# }

Run the code above in your browser using DataLab