Detect the number of cores on windows

Zach picture Zach · Jun 17, 2011 · Viewed 10.1k times · Source

If I am running R on linux or on a mac, I can detect the number of available cores using multicore:::detectCores(). However, there's no windows version of the multicore functions, so I can't use this technique on windows.

How can I programmatically detect the number of cores on a windows machine, from within R?

Answer

Zach picture Zach · Nov 25, 2012

The parallel package now has a function to detect the number of cores: parallel:::detectCores().