random_fact {roundhouse} | R Documentation |
Random Chuck Norris facts
Description
Query the internet Chuck Norris database (ICNDb) for a random Chuck Norris fact.
Usage
random_fact(
n = 1L,
include = NULL,
exclude = NULL,
sound = FALSE,
sound_repeat = 1
)
Arguments
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 |
Value
An object of class "random_fact"
; essentially a character
vector.
Examples
## Not run:
# Generate a random fact
random_fact()
# Generate multiple random facts
random_fact(3, sound = TRUE)
## End(Not run)