How to make R use all processors?

前端 未结 7 936
小蘑菇
小蘑菇 2020-12-04 06:46

I have a quad-core laptop running Windows XP, but looking at Task Manager R only ever seems to use one processor at a time. How can I make R use all four processors and spee

7条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 07:25

    As of version 2.15, R now comes with native support for multi-core computations. Just load the parallel package

    library("parallel")
    

    and check out the associated vignette

    vignette("parallel")
    

提交回复
热议问题