lolify: Make Functions More Colourful

Description Usage Arguments Details Value Author(s)

View source: R/lolify.R

Description

Convert a function to use rainbow-writing functions: replacing cat with lolcat, etc. This is done by rewriting environments rather than rewriting code.

Usage

1
2
3
lolify(fun, which = "all")

unlolify(fun)

Arguments

fun

A function to modify

which

Character vector indicating which types of output generating functions to modify. Possible values are "cat", "message" and "print", indicating which functions to modify. Multiple values are OK (e.g, c("cat", "message"). The special value "all" changes all values and is the default.

Details

The function unlolify reverses the process.

Value

A function with the environment rewritten to use lolifed versions of output functions

Author(s)

Rich FitzJohn


richfitz/rainbowrite documentation built on March 1, 2021, 9:03 p.m.