Description Usage Arguments Value Examples
Query the internet Chuck Norris database (ICNDb) for a random Chuck Norris fact.
1 2 3 4 5 6 7 | random_fact(
n = 1L,
include = NULL,
exclude = NULL,
sound = FALSE,
sound_repeat = 1
)
|
n |
Integer specifying the number of random facts to return. Default is
|
include |
Character string specifying the category of the joke. Default
is |
exclude |
Character string specifying the categories to exclude.
Default is |
sound |
Logical indicating whether or not "Chuck Norris" should be
shouted when generating random facts. Default is |
sound_repeat |
Integer specifying the number of times the sound should
be repeated. Default is 1. (Only matters if |
An object of class "random_fact"
; essentially a character
vector.
1 2 3 4 5 6 7 8 | ## Not run:
# Generate a random fact
random_fact()
# Generate multiple random facts
random_fact(3, sound = TRUE)
## End(Not run)
|
sh: 1: cannot create /dev/null: Permission denied
[1] "Chuck Norris always knows the EXACT location of Carmen SanDiego."
sh: 1: /work/tmp/tmp/RtmpQ4Lsq8/tuneRtemp.wav: Permission denied
[1] "Product Owners never ask Chuck Norris for more features. They ask for mercy."
[2] "Chuck Norris once shot down a German fighter plane with his finger. By yelling \"Bang!\""
[3] "The last thing you hear before Chuck Norris gives you a roundhouse kick? No one knows because dead men tell no tales."
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.