Detect the number of cores on windows
问题 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? 回答1: The parallel package now has a function to detect the number of cores: parallel:::detectCores() . 回答2: This thread has a number of suggestions, including: Sys.getenv('NUMBER_OF