loudly: Add a simple logging message to any function

View source: R/loudly.R

loudlyR Documentation

Add a simple logging message to any function

Description

Add a simple logging message to any function

Usage

loudly(.f)

Arguments

.f

A function to decorate

Value

A function which returns a list. The first element of the list, $result, is the result of the original function .f applied to its inputs, and the second element is a log message, $log.

Examples

loudly(sqrt)(10)

b-rodrigues/loud documentation built on April 8, 2022, 12:32 p.m.