View source: R/pch_check_available_cores.R
pch_check_available_cores | R Documentation |
Parallel computing helper function to check for the available cores.
pch_check_available_cores(ncores = -1L)
ncores |
An integer. A number of cores requested for parallel computing
(default: |
The function returns an integer that indicates the number of cores
available. If ncores <= parallel::detectCores()
the function returns
ncores
. If ncores > parallel::detectCores()
, the function returns
parallel::detectCores() - 1L
.
pch_check_available_cores(2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.