loading files in parallel not working with foreach + data.table

前端 未结 1 395
情话喂你
情话喂你 2021-02-04 20:47

I would like to use foreach in conjuction with data.table (v.1.8.7) to load files and bind them. foreach is not parallelizing, and returni

相关标签:
1条回答
  • 2021-02-04 21:13

    Just to get this answered:

    As the warning message tells you, there is no parallel backend registered for foreach. Read this vignette to learn how to do that.

    Simple example from the vignette:

    library(doParallel) 
    cl <- makeCluster(3) 
    registerDoParallel(cl) 
    foreach(i=1:3) %dopar% sqrt(i) 
    
    0 讨论(0)
提交回复
热议问题