Package 'joker'

Title: Return a Random Joke from APIs
Description: What is funnier than a joke? A joke in R! This package utilizes the APIs for <https://icanhazdadjoke.com> and <https://chucknorris.io> and returns a random dadjoke or Chuck Norris joke.
Authors: Tan Ho [aut, cre], Jeffrey W Hollister [aut], Mathias Schilling [cph], Antoine Bichat [ctb], Brett Langdon [cph]
Maintainer: Tan Ho <[email protected]>
License: MIT + file LICENSE
Version: 0.0.3
Built: 2024-09-25 05:46:39 UTC
Source: https://github.com/tanho63/joker

Help Index


Function to return random Chuck Norris joke

Description

This function returns a random Chuck Norris joke from https://chucknorris.io

Usage

chuckjoke(sfw = TRUE)

Arguments

sfw

(Defaults to TRUE) Filters out explicit, political, and religion jokes from the potential returns.

Value

A random Chuck Norris joke from https://chucknorris.io

Examples

chuckjoke()
chuckjoke(sfw=FALSE)

Function to return random dad joke

Description

This function returns a random dad joke from https://icanhazdadjoke.com

Usage

dadjoke()

Examples

dadjoke()

Function to return random joke from package functions

Description

This function chooses a joke to return, calling either dadjoke() or chuckjoke() at random.

Usage

randomjoke()

Examples

randomjoke()