Forked from Jeff Hollister's dadjoke R package, this fork removes the sting and adds a similar function for Chuck Norris jokes. I'm planning to use this package in R/Shiny apps as "loading screen entertainment" and the sting starts to wear after a while!
Jeff Hollister (for the original R package!), Brett Langdon (for the https://icanhazdadjoke.com API), and Mathias Schilling (for the https://chucknorris.io API)
You can install jokeR from GitHub with:
# install.packages("devtools") OR install.packages("remotes") ## remotes is a subpackage of devtools
remotes::install_github("tanho63/joker")
This is a basic example which shows you how to solve a common problem - the problem of not laughing enough!
joker::dadjoke()
[1] "Can a kangaroo jump higher than the Empire State Building? Of course. The Empire State Building can't jump."
joker::chuckjoke()
[1] "There is no Esc key on Chuck Norris' keyboard, because no one escapes Chuck Norris."
joker::randomjoke()
[1] "Chuck Norris makes onions cry."