# The number of physical cores in the hardware:
::detectCores(logical = FALSE) parallel
[1] 4
# The number of possible independent processes that can
# be simultaneously used:
::detectCores(logical = TRUE) parallel
[1] 8
# The number of physical cores in the hardware:
::detectCores(logical = FALSE) parallel
[1] 4
# The number of possible independent processes that can
# be simultaneously used:
::detectCores(logical = TRUE) parallel
[1] 8
# Unix and macOS only
library(doMC)
Loading required package: foreach
Loading required package: iterators
Loading required package: parallel
registerDoMC(cores = 8)
# Now run fit_resamples()...
registerDoSEQ() # Reset
# All operating systems
library(doParallel)
# Create a cluster object and then register:
<- makePSOCKcluster(8)
cl registerDoParallel(cl)
## Run
# Reset
stopCluster(cl)