An R package and S4 excercise for Knock-Knock Joke lovers.
library(KnockKnockJokes)
## create a joke object
KnockKnockJoke(name="Alex", punch="Alex-plain later.")
# Knock-knock!
# Who's there?
# Alex.
# Alex who?
# Alex-plain later.
## display random joke
KnockKnock()
# Knock-knock!
# Who's there?
# Orange.
# Orange who?
# Orange you going to open this door?
## display 1st joke from list
KnockKnock(1)
# Knock-knock!
# Who's there?
# Abby.
# Abby who?
# Abby birthday to you!
devtools::install_github("psolymos/KnockKnockJokes")
See NEWS for updates.
Use the issue tracker to report a problem.
Use the issue tracker or fork/PR.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.