knitr::opts_chunk$set(
  comment = "#>",
  tidy = FALSE,
  error = FALSE,
  fig.width = 8,
  fig.height = 8);
DISCLAIMER: This package is meant for humour purposes, in the grand tradition of self-deprecation. To be clear: being mean is not cool, kids. Please do not use this package to be toxic to others. Also, take care of yourself.

Now, go and have some fun.
- Jay Dubs

malign

Positive encouragement is nifty, but have ya tried negative encouragement?

Linux Build Status R build status Windows Build status Codecov test coverage

Overview

Everyone needs to be taken down a peg once in a while, especially oneself! Forked from the complementary (and complimentary!) package praise, malign provides ready-made insults for use when code does not run as expected. Useful for troubleshooting code, or just to make oneself feel bad.

Installation

remotes::install_github("josephwb/malign");

Usage

library(malign);
malign();

malign() currently supports the following parts of speech:

names(malign_parts);

You can pass a template specifying these supported parts of speech, and malign() fills in random words of the matching type:

malign("${EXCLAMATION}! You have done this ${adverb_manner}!");

Prefer your jabs to be in emoticon form? No problem:

malign("${frowny}");

Is 'malign' too hoity-toity for you? Try some other commands (note: harshness does not differ across commands):

insult("${EXCLAMATION}! That was quite ${adjective}!");

or:

dis("${EXCLAMATION}!!! That was certainly a ${result}!");

or:

zing("${EXCLAMATION}! That code executed quite ${adverb_manner}!");

or:

snark("${EXCLAMATION}! Your coding ability is just ${adjective}!");

Note that capitalization in the inserted words will be the same as in the template:

malign("${Exclamation}! ${EXCLAMATION}! ${Exclamation}! This is just ${adjective}!");

License

MIT © Joseph W. Brown



josephwb/malign documentation built on Oct. 13, 2024, 4:08 a.m.