Learn R Programming

dadjokeapi (version 1.0.2)

groan_image: Function to return a specific dad joke as an image

Description

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

Usage

groan_image(joke_id)

Arguments

joke_id

A specific dad joke ID to return

Value

Returns a png array from readPNG.

Examples

Run this code
# NOT RUN {
joke_png <- groan_image("GlGBIY0wAAd")
# }

Run the code above in your browser using DataLab