R/output_progress.R

Defines functions UpdateStatus PrintTime

PrintTime <- function(pt, st) {
  cat("Real time used: ", (proc.time() - pt)[3], "\n")
  cat(" CPU time used: ", st[3], "\n\n\n")
}

UpdateStatus <- function(statusfile, text) {
  if ((!(is.na(statusfile))) && (nchar(statusfile) > 0)) {
    writeLines(text, statusfile)
  }
}

Try the chemmodlab package in your browser

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

chemmodlab documentation built on May 2, 2022, 1:05 a.m.