Learn R Programming

norris

If you ever wanted random Chuck Norris jokes on-demand, this is the package for you.

How To Install

You can now install via CRAN with install.packages("norris")!

Otherwise, for dev version - install devtools and then use install_github pointing to this repo. See below:

install.packages(devtools)

devtools::install_github("chriscardillo/norris")

How To Use

Get a random Chuck Norris joke with get_random_joke(), or get multiple random jokes with get_multiple_randos().

For get_multiple_randos() - input the number of jokes you want, if you want!

Otherwise, use get_numbered_joke() with a joke number (somewhere between 1 and 558) to get a specific joke.

Utility functions get_joke_count() and get_joke_categories() are pretty pointless currently.

Special Notes

For get_numbered_joke(), there are a few jokes missing (7 through 11). Maybe Chuck Norris roundhouse kicked them out of the database..

Copy Link

Version

Install

install.packages('norris')

Monthly Downloads

2

Version

0.1.1

License

MIT + file LICENSE

Maintainer

Chris Cardillo

Last Published

January 18th, 2019

Functions in norris (0.1.1)

get_multiple_randos

Get a bunch of random Chuck Norris jokes.
get_joke_categories

Get all available joke categories from ICNDB
get_numbered_joke

Get a specific joke by number
get_joke_count

Get number of available jokes in ICNDB
get_random_joke

Get a random Chuck Norris joke