To protect against this, makeClusterPSOCK() could compare n > availableCores() and:
produce an informative warning, or
produce an informative error
If an error, then there should be an option to override it, e.g. force = TRUE. Of course, one can always workaround it by merging many smaller clusters, e.g.
(This was triggered by https://stackoverflow.com/questions/77244972)
There's nothing that prevents us from doing:
where
n
is very large, e.g.n = 1000
.To protect against this,
makeClusterPSOCK()
could comparen > availableCores()
and:If an error, then there should be an option to override it, e.g.
force = TRUE
. Of course, one can always workaround it by merging many smaller clusters, e.g.