Create forked clusters
make_forked_clusters(
workers = future::availableCores(constraints = "multicore"),
...
)
positive integer, number of cores to use
passing to future::plan
number of cores
This is a wrapper for future::plan(future::multicore, ...)
.
However, since version 1.14.0, forked clusters are disabled in `RStudio` by
default, and you usually need to enable it manually. This function provides
a simple way of enable it and plan the future at the same time.