powered by
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.
plan()
A positive number in \({1, 2, 3, ...}\). Note, it may also be +Inf for certain types of backends.
+Inf
# NOT RUN { plan(multiprocess) nbrOfWorkers() ## == availableCores() plan(sequential) nbrOfWorkers() ## == 1 # }
Run the code above in your browser using DataLab