facts: Retrieve a fact from the Chuck Norris API

Description Usage Arguments Value References Examples

Description

Retrieve a fact from the Chuck Norris API

Usage

1

Arguments

category

A string containing the category of interest(set it to NULL for a random fact). Use list_categories to display the available categories.

Value

A list containing the fact(s) and the related ids

References

https://api.chucknorris.io/

Examples

1
2
 library("chucknorris")
 science_facts<- facts(category="science")

onertipaday/chucknorris documentation built on May 3, 2019, 5:49 p.m.