groan_id: Function to return a specific dad joke

Description Usage Arguments Value Examples

View source: R/groan.R

Description

This function returns a specific dad joke from https://icanhazdadjoke.com using its dad joke ID.

Usage

1
groan_id(joke_id)

Arguments

joke_id

A specific dad joke ID to return

Value

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_id("GlGBIY0wAAd")

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