messageq: Optionally generate a message based on a logical input

View source: R/utilities.R

messageqR Documentation

Optionally generate a message based on a logical input

Description

Given the input to quiet, generate the message(s) in msg or not.

Usage

messageq(msg = NULL, quiet = FALSE)

Arguments

msg

character vector of the message(s) to generate or NULL. If more than one element is contained in msg, they are concatenated with a newline between.

quiet

logical indicator controlling if the message is generated.

Examples

  messageq("hello")
  messageq("hello", TRUE)


LDATS documentation built on Sept. 19, 2023, 5:08 p.m.