Get the number of workers available
nbrOfWorkers(evaluator = NULL)
A future evaluator function.
If NULL (default), the current evaluator as returned
by plan()
is used.
A positive number in +Inf
for certain types of backends.
# NOT RUN {
plan(multisession)
nbrOfWorkers() ## == availableCores()
plan(sequential)
nbrOfWorkers() ## == 1
# }
Run the code above in your browser using DataLab