How do I parallelize in r on windows - example?

后端 未结 6 1216
滥情空心
滥情空心 2020-12-13 02:00

How do I get parallelizaton of code to work in r in Windows? Include a simple example. Posting this self-answered question because this was rather unpleasant to get working.

6条回答
  •  攒了一身酷
    2020-12-13 02:43

    I think these libraries will help you:

    foreach (facilitates executing the loop in parallel)
    doSNOW (I think you already use it)
    doMC (multicore functionality of the parallel package)
    

    May these article also help you

    http://vikparuchuri.com/blog/parallel-r-loops-for-windows-and-linux/

    http://www.joyofdata.de/blog/parallel-computing-r-windows-using-dosnow-foreach/

提交回复
热议问题