README.md

Travis-CI Build Status CRAN_Status_Badge

fiveline

five-line

fiveline is an R integration of the five-line API.

five-line collects the bawdiest and smutiest limericks out there; this package lets you easily include them in your Rmarkdown package or Shiny apps, because why not?

Installation

You can install fiveline from github with:

# install.packages("devtools")
devtools::install_github("JohnCoene/fiveline")

Documentation

Authentication

Simply visit five-line and create an account then use your credentials in fl_auth, see example below.

Example

fl_auth("username", "password") # authenticate
categories <- list_cat() # get all categories
cat <- get_cat(categories$id[1]) # get limericks in first category
lim <- get_lim(sample(cat$id, 1)) # get random limerick from category
insert_lim(lim) # insert in Rmarkdown
A bather

A bather whose clothing was strewed

By winds that left her quite nude,

Saw a man come along

And unless I am wrong,

You expect this line to be lewd.



JohnCoene/fiveline documentation built on May 27, 2019, 7:24 a.m.