R/messagef.R

Defines functions messagef

Documented in messagef

#' Output a formatted message
#'
#' @param fmt format string (see \code{\link{sprintf}} for details)
#' @param ... values passed into \code{fmt}.
#'        Only logical, integer, real and character vectors are supported, but some coercion will be done.
#'
#' @return Nothing, called for the side effect of outputting a message to the console.
#' @export
#' 
messagef <- function(fmt, ...) {
  message(sprintf(fmt, ...))
}

Try the babsim.hospital package in your browser

Any scripts or data that you put into this service are public.

babsim.hospital documentation built on May 30, 2022, 9:05 a.m.