Skip to content

An R wrapper to the ICNDb API (i.e., use R to generate random Chuck Norris facts 🙌)

Notifications You must be signed in to change notification settings

bgreenwell/roundhouse

Repository files navigation

roundhouse: An R wrapper to the ICNDb API

CRAN status Travis-CI Build Status AppVeyor Build Status Coverage Status lifecycle

Overview

Generate random Chuck Norris facts from the excellent internet Chuck Norris database 😎.

Sample fact

Chuck Norris solved the traveling salesman problem in O(1) time. Here’s the pseudo-code:

Break salesman into N pieces.
Kick each piece to a different city.

Installation

You can install the development version of roundhouse from GitHub using

if (!requireNamespace("devtools")) {
  install.packages("devtools")
}
devtools::install_github("bgreenwell/roundhouse")

Example usage

⚠️ WARNING: Some facts may contain explicit material!

# Generate a random fact
roundhouse::random_fact()
#> [1] "Chuck Norris has never been accused of murder because his roundhouse kicks are recognized as 'acts of God.'"

# Generate multiple random facts
roundhouse::random_fact(3)
#> [1] "Chuck Norris doesn't need garbage collection because he doesn't call .Dispose(), he calls .DropKick()."
#> [2] "There are no steroids in baseball. Just players Chuck Norris has breathed on."                         
#> [3] "All browsers support the hex definitions #chuck and #norris for the colors black and blue."

# Print fact categories
roundhouse::fetch_categories()
#> [1] "explicit" "nerdy"

# Generate a random fact with a roundhouse kick!
roundhouse::kick(width = 40, size = 15)

# Or simply supply your own text!
roundhouse::kick("Chuck Norris can’t test for equality because he has no equal.",
                 type = 2, width = 40, size = 25, fps = 5)

Inspirations

About

An R wrapper to the ICNDb API (i.e., use R to generate random Chuck Norris facts 🙌)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages