This package contains a drop-in replacement for R’s cat, message and print, inspired by lolcat.

Usage

Use it just like cat

for (i in 1:10) {
  rainbowrite::lolcat("hello world\n")
}

lolcat

Or like message

rainbowrite::lolmessage("wow\n\t\tsuch colours\n   much rainbow")

lolmessage

Modify functions that already use cat or message using lolify:

lolsay <- rainbowrite::lolify(cowsay::say)
lolsay("I ate a rainbow", "longcat")

lolify

Installation

Install from github using remotes:

remotes::install_github("richfitz/rainbowrite", upgrade = FALSE)

License

MIT + file LICENSE © Rich FitzJohn