R/msg.R

Defines functions msg

Documented in msg

#' Show Message
#'
#' Show a message, as well as the current time.
#'
#' @param \dots passed to \code{message}.
#'
#' @return No return value, called for side effects.
#'
#' @seealso
#' \code{\link{message}} is the base function to show messages, without the
#' current time.
#'
#' \code{\link{sourceTAF}} reports progress using \code{msg}.
#'
#' \code{\link{TAF-package}} gives an overview of the package.
#'
#' @examples
#' \donttest{
#' msg("script.R running...")
#' }
#'
#' @export

msg <- function(...)
{
  message(format(Sys.time(), "[%H:%M:%S] "), ...)
}

Try the TAF package in your browser

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

TAF documentation built on April 7, 2021, 5:06 p.m.