关于功能,RdoParallel和R有什么区别?支持windows,类unix,而仅支持类unix。换句话说,为什么不能直接替换?谢谢你。doMCforeachdoParalleldoMCdoParalleldoMC
更新:
doParallel基于parallel,本质上是合并multicore并snow自动为您的系统使用适当的工具。这样一来,我们就可以使用doParallel来支持多系统了。换句话说,我们可以使用doParallel替换doMC。
参考: http: //michaeljkoontz.weebly.com/uploads/1/9/9/4/19940979/parallel.pdf
registerDoParallel(ncores=3)顺便说一句,和有什么区别
cl <- makeCluster(3)
registerDoParallel(cl)
似乎registerDoParallel(ncores=3)可以自动停止集群,而第二个不会自动停止并且需要stopCluster(cl)。
参考:http ://cran.r-project.org/web/packages/doParallel/vignettes/gettingstartedParallel.pdf