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{source.taf}} 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 March 31, 2023, 6:51 p.m.