printMessage: Stand out message printing

View source: R/utility_functions.R

printMessageR Documentation

Stand out message printing

Description

This function is designed to make printing flagposts and status messages easier to see against many output messages.

Usage

printMessage(message = "", width = 80, fillChar = "#", justify = "m", ...)

Arguments

message

The message to print. Passed directly to base::print(). Defaults to the empty character string, "".

width

The number of characters in width for the final message. Defaults to 80.

fillChar

Character used for padding message to fill the width required. Defaults to "#".

justify

One of "l", "m", or "r" to justify the message on the left, middle, or right side of the output line. Defaults to "l".

Examples

printMessage("hi")

mikelaff/mikelaffr documentation built on Oct. 15, 2022, 9:50 a.m.