Package 'KnockKnockJokes'

Title: Knock-Knock Jokes
Description: An S4 exercise for Knock-Knock Joke lovers.
Authors: Peter Solymos [aut,cre], Bence Solymos [ctb], Lilla Solymos [ctb]
Maintainer: Peter Solymos <[email protected]>
License: GPL-2
Version: 0.1-0
Built: 2024-12-19 04:52:12 UTC
Source: https://github.com/psolymos/KnockKnockJokes

Help Index


Knock-Knock Jokes

Description

An S4 exercise for Knock-Knock Joke lovers.

Details

Main function: KnockKnock

Author(s)

Bence, Lilla, and Peter Solymos

Maintainer: Peter Solymos <[email protected]>

Examples

KnockKnock()

Knock-Knock Jokes

Description

Function for Knock-Knock Jokes.

Usage

KnockKnockJoke(name, punch)

KnockKnock(x)

Arguments

x

integer, id for a joke in KnockKnock.

name

character, name in the joke.

punch

character, punchline in the joke.

Details

KnockKnockJoke is used to create the S4 class for jokes.

KnockKnock() displays a random joke from the list inside.

Value

An S4 object of class "KnockKnockJoke" with 2 slots: name, joke.

Author(s)

Bence, Lilla, and Peter Solymos <[email protected]> based on various sources (friends, library, Internet).

Examples

## create a joke object
KnockKnockJoke(name="Alex", punch="Alex-plain later.")
## display random joke
KnockKnock()
## display 1st joke from list
KnockKnock(1)