R/save_results.R

Defines functions save_results

save_results <- function(results,
                         save_path,
                         verbose=TRUE){

  if (!is.null(save_path) &&
      nrow(results)>0) {
    messager("\nSaving results ==>",save_path,v=verbose)
    saveRDS(results,save_path)
    return(save_path)
  }
}
neurogenomics/MultiEWCE documentation built on Jan. 16, 2025, 12:54 a.m.