aperol

Generates praise using the {praise} package, then garbles it, as if being delivered by someone tipsy or drunk

Authors

Ella Kaye

Kelly Bodwin

Collin Schwantes

Published

July 15, 2024

Main resources

source documentation R-universe hex sticker

Overview

A package that started as a joke, based on this mastodon toot by Kelly Bodwin, asking what a package called {aperol} would do, and the subsequent suggestion by Nick Tierney that it should deliver praise, which I ran with.

{aperol} gives you praise, but as if from someone tipsy or drunk. Specifically, it generates some praise using the {praise} package and garbles it. aperol::tipsy() swaps a subset of words, and aperol::drunk() mixes up the whole affirmation, repeating some words along the way.

As of v0.2.0, there is an aperol::spritz() function, which is a wrapper to any other function (by default devtools::check()) which counts how many times you call it, and offers increasingly garbled praise, the more often you do so in a given time-frame.

Installation

You can install the development version of aperol from GitHub with:

# install.packages("remotes")
remotes::install_github("EllaKaye/aperol")

Examples

library(aperol)
tipsy()
[1] "You superb! warmly are"
tipsy(swaps = 2, "${Exclamation}! ${EXCLAMATION}!-${EXCLAMATION}! This is just ${adjective}!")
[1] "This YOWZA!-AWWW! stonking! is just Wowie!"
drunk()
[1] "You You frankly are bedazzling!"
drunk(repeat_words = 2, repeat_times = 2:3)
[1] "are are are effectively You fantastic! fantastic!"
drunk(2, 2, "You are ${creating} a ${adverb} ${adjective} ${rpackage}")
[1] "are are program setting You grand up joyously a up"

The hex

The hex for the package (created by Kelly Bodwin) is so fun that here it is in its full-sized glory.