Return a Random Dad Joke

What is funnier than a dad joke? A dad joke in R! This package utilizes the API for < https://icanhazdadjoke.com> and returns dad jokes from several API endpoints.


R buildstatus Codecov testcoverage

dadjokeapi

The goal of dadjokeapi is to make you laugh in spite of yourself.

It is built off of the hard work of Brett Langdon and the API he supports at https://icanhazdadjoke.com

Installation

You can install dadjokeapi from github with:

# install.packages("devtools")
devtools::install_github("jhollist/dadjokeapi")

And from CRAN with

install.packages("dadjokeapi")

Example

This is a basic example which shows you how to solve a common problem... The problem of not laughing enough!!!

dadjokeapi::groan()

[1] "I was thinking about moving to Moscow but there is no point Russian into things."

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("dadjokeapi")

1.0.2 by Jeffrey Hollister, 6 years ago


https://github.com/jhollist/dadjokeapi/


Report a bug at https://github.com/jhollist/dadjokeapi/issues/


Browse source code at https://github.com/cran/dadjokeapi


Authors: Jeffrey Hollister [aut, cre] , Antoine Bichat [ctb] , Brett Langdon [cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports httr, beepr, curl, dplyr, png

Suggests testthat, mockery


See at CRAN