tidymess: Long user messages in a tidy way

Description Usage Arguments Details Value

View source: R/utils.R

Description

tidymess let's the programmer write longer and more informative messages to the user by ensuring that the message is printed in a tidy way to the console. One can specify which type of message to give: error, warning or message.

Usage

1
tidymess(..., type = "warning", prefix = " ", initial = "")

Arguments

...

Message to user

type

Character, either "error", "warning" or "message"

prefix

Prefix before message

initial

Initial, ""

Details

Used in scripts: Robust function: TRUE

Value

The input message either in form of an error, warning or message. If the input type does not match either, an error is thrown.


AndreSjuve/flowaid documentation built on Dec. 17, 2021, 8:50 a.m.