R/log.R

Defines functions log

# Placeholder for logging callbacks
log <- function(fmt, ...){
  if(!is_rapache()){
    cat(sprintf(paste0("[%s] ", fmt, "\n"), as.character(Sys.time()), ...))
    utils::flush.console()
  }
}

Try the opencpu package in your browser

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

opencpu documentation built on Aug. 7, 2023, 5:12 p.m.