Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jpmonteagudo28/despair
A (de)motivational R package with Shakespearean flavor
https://github.com/jpmonteagudo28/despair
Last synced: about 1 month ago
JSON representation
A (de)motivational R package with Shakespearean flavor
- Host: GitHub
- URL: https://github.com/jpmonteagudo28/despair
- Owner: jpmonteagudo28
- License: gpl-3.0
- Created: 2024-07-31T21:20:28.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T12:39:19.000Z (3 months ago)
- Last Synced: 2024-10-24T14:17:08.425Z (3 months ago)
- Language: R
- Homepage: http://despair.jpmonteagudo.com/
- Size: 1.97 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.Rmd
- Changelog: NEWS.md
- License: LICENSE.md
Awesome Lists containing this project
README
---
output: github_document
---# despair
[![](https://cranlogs.r-pkg.org/badges/despair)](https://cran.r-project.org/package=despair)
[![CRAN
status](https://www.r-pkg.org/badges/version/despair)](https://CRAN.R-project.org/package=despair)```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "80%",
fig.align = "center",
warning = FALSE
)
```# 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
``` r
install.packages("despair")
```
You can also install the development version of this package through the `devtools` package.
```r
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.
```{r example, eval=FALSE}
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"
```