R/printError.R

Defines functions printError

Documented in printError

printError<-function(funname,check_without_errors, stop_) {
  if (check_without_errors == FALSE) {
    if (stop_ == FALSE) {
      message(paste(funname,": errors occurred! Please correct files and run again the script. For more details see Logfile.dat", sep=""))
      stop_ = TRUE
    }
  } else {
    message(paste(funname," successfully completed!", sep=""))
  }

  return(stop_)
}

Try the RoME package in your browser

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

RoME documentation built on April 24, 2026, 1:07 a.m.