R/mclapply_replace.R

Defines functions .mclapply

### Replace mcapply with reasonable default that works on windows.
.mclapply <- function(...) {
  if(require(parallel)) {
    if(is.null(options("mc.cores")[[1]])) {
      message("Remember to set options('mc.cores') if you want multiple cores used where possible")
    }
    return(mclapply(...))
  } else {
    return(lapply(...))
  }
}

Try the methylumi package in your browser

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

methylumi documentation built on Nov. 8, 2020, 6:26 p.m.