Skip to content

Instantly share code, notes, and snippets.

View ianyfchang's full-sized avatar

Ian YF Chang ianyfchang

  • Taipei, Taiwan
View GitHub Profile
bigcorPar <- function(x, nblocks = 10, verbose = TRUE, ncore="all", ...){
library(ff, quietly = TRUE)
require(doMC)
if(ncore=="all"){
ncore = multicore:::detectCores()
registerDoMC(cores = ncore)
} else{
registerDoMC(cores = ncore)
}