R/messager.R

Defines functions messager

Documented in messager

#' Print messages
#'
#' Print messages with option to silence.
#'
#' @param ... Message input.
#' @param v Whether to print messages.
#' 
#' @return Null output.
#'
#' @keywords internal
messager <- function(..., v = TRUE) {
    if (v) {
        msg <- paste(...)
        message(msg)
    }
}
NathanSkene/EWCE documentation built on Nov. 3, 2024, 8:16 a.m.