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
Positive encouragement is nifty, but have ya tried negative encouragement?
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.
devtools::install_github("josephwb/malign");
library(malign);
malign();
#> [1] "You are stomach-turning!"
malign()
currently supports the following parts of speech:
names(malign_parts);
#> [1] "adjective" "adverb" "adverb_manner" "created"
#> [5] "creating" "exclamation" "rpackage" "frowny"
#> [9] "result"
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}!");
#> [1] "GAK! You have done this discourteously!"
Prefer your jabs to be in emoticon form? No problem:
malign("${frowny}");
#> [1] "D8"
Is ‘malign’ too hoity-toity for you? Try some other commands (note: harshness does not differ across commands):
insult("${EXCLAMATION}! That was quite ${adjective}!");
#> [1] "MERDE! That was quite ungroomed!"
or:
dis("${EXCLAMATION}!!! That was certainly a ${result}!");
#> [1] "WTF!!! That was certainly a letdown!"
or:
zing("${EXCLAMATION}! That code executed quite ${adverb_manner}!");
#> [1] "GEE-WHIZ! That code executed quite shabbily!"
or:
snark("${EXCLAMATION}! Your coding ability is just ${adjective}!");
#> [1] "BAISE MOI! Your coding ability is just secretive!"
Note that capitalization in the inserted words will be the same as in the template:
malign("${Exclamation}! ${EXCLAMATION}! ${Exclamation}! This is just ${adjective}!");
#> [1] "Dang! SHUCKS! Gosh! This is just unamazing!"
MIT © Joseph W. Brown