R/accumulate.warnings.R

Defines functions accumulate.warnings

accumulate.warnings <- function(warnings.list){
#Formats the warnings coming back from a parallel processor run
  if(length(warnings.list) > 0){
    warnings <- warnings.list[[1]]
    for(i in seq(along = warnings.list[-1])){ 
      temp <- warnings.list[[i]]$message
      for(j in seq(along = temp)){
        warnings <- message.handler(warnings, temp[[j]])
      }
    }
    return(warnings)
  }else{
    return(list())
  }
  
}

Try the DSsim package in your browser

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

DSsim documentation built on March 26, 2020, 7:39 p.m.