R/logger.R

Defines functions log_msg

Documented in log_msg

#' Helper function to print out log messages
#'
#' @param message Message that should be printed to R console
log_msg <- function(message) {
  if (getOption("xspliner.log", default = FALSE)) {
    cat(message, "\n")
  }
}

Try the xspliner package in your browser

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

xspliner documentation built on Sept. 26, 2019, 1:02 a.m.