Learn R Programming

despair

Overview

despair is a package inspired by Shakespeare’s work and his well-known pessimism. It allows the user to create short, clever codes called bard–bits inspired by Shakespeare’s work and use daily demotivational quotes for personal use or to share with others.

Installation

You can install this package on CRAN

install.packages("despair")

You can also install the development version of this package through the devtools package.

devtools::install_github("jpmonteagudo28/despair")

Usage

There are three basic functions in the package: demotivate, motivate, and bard.bits. Each function will take a category input and an optional numeric or character seed for reproducible results.

library(despair)

#> Get info on package version 
 despair.message()
#> despair string generated by {despair} v.0.1.0.R version 4.4.1 (2024-06-14 ucrt).

demotivate()
#> "I’m not really good at advice. Can I interest you in a sarcastic comment?"
demotivate("science", seed = 123)
#> "No matter how hard you try, you’ll always be within one standard deviation of average."
demotivate("science", seed = "lanky poodle")
#> "Don't worry! There might be a socio-anthropoligical intepretation of your results"

motivate("lit")
#> "If you tell the truth, you don't have to remember anything. — Mark Twain"
motivate("religion", seed = 123)
#> "The Christian does not think God will love us because we are good, but that God will make us good because He loves us. - C.S. Lewis"
motivate("religion", seed = "bewildered pooh")
#> "Really great things, when discussed by little men, can usually make such men grow big. - Augustine of Hippo"

bard.bits()
#> "brownish purple kite"
bard.bits("character", seed = 123)
#> "filthy duncan"
bard.bits("character", seed = "stinky chihuahua")
#> "lofty tranio"

Copy Link

Version

Install

install.packages('despair')

Monthly Downloads

575

Version

0.1.0

License

GPL (>= 3)

Issues

Pull Requests

Stars

Forks

Maintainer

JP Monteagudo

Last Published

August 22nd, 2024

Functions in despair (0.1.0)

demotivate

Generate demotivational quotes for personal use.
science

A data frame of science-related demotivational quotes
set.char.seed

Convert any character vector to an integer for setting a reproducible seed
work

A data frame of work-related demotivational quotes
shake_adjectives

A data frame of Shakespeare's adjectives
shake_things

A data frame of Shakespeare's objects
despair.message

Display package version for despair
motivate

General motivation quotes for personal use
family

A data frame of family-related demotivational quotes
life

A data frame of life-related demotivational quotes.
lit

A data frame of modern and contemporary literature motivational quotes.
modern

A data frame of modern and contemporary historical and pop-culture icons
shake_chars

A data frame of Shakespeare's characters
rednecks

A data frame of sweet redneck humor
psych

A data frame of psychology-related quotes
shake_jobs

A data frame of Shakespeare's jobs
religion

A data frame of religious motivational quotes
shake_clrs

A data frame of Shakespeare and unusual colors
stoic

A data frame o stoic motivational quotes
tv

A data frame of tv and film demotivational quotes
dsm_5

A data frame of DSM-5 adjectives
shake_animals

A data frame of Shakespeare's animals
bard.bits

Generate unique bard bits using Shakespeare's work and DSM-5 adjectives