knitr::opts_chunk$set( comment = "#>", tidy = FALSE, error = FALSE, fig.width = 8, fig.height = 8);
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.
remotes::install_github("josephwb/malign");
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}!");
MIT © Joseph W. Brown
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.