joke: Random joke

Description Usage Arguments Author(s) Examples

View source: R/joke.R

Description

Random joke function randomly select a joke from question-answer joke data set, and display the jokes at customisable intervals.

The data-set which the function import from consists of 38,269 jokes in question-answer form. The data-set was obtained from the r/Jokes subreddit and distributed at https://www.kaggle.com/jiriroz/qa-jokes. The data is released under Released under reddit's [API terms](https://www.reddit.com/wiki/api-terms).

Usage

1
joke(n=1, t=3, pause=TRUE)

Arguments

n

Number of jokes to be generated.

t

Time interval between displaying the question and the answer. The defaulted time-interval is at 3 seconds.

pause

TRUE/FALSE. Whether to invoke a 1.5 seconds pause between two questions.

Author(s)

Adam Quek

Examples

1
2
3
joke() # display 1 joke, with 3 seconds interval between question and answer

joke(10, 0, FALSE) # display 10 jokes without any time intervals

minerva79/joke documentation built on May 6, 2019, 6:02 p.m.