powered by
Registers a finalizer to a cluster such that the cluster will be stopped when garbage collected
autoStopCluster(cl, debug = FALSE)
A cluster object created by for instance makeClusterPSOCK() or parallel::makeCluster().
makeClusterPSOCK()
parallel::makeCluster()
If TRUE, then debug messages are produced when the cluster is garbage collected.
The cluster object with attribute gcMe set.
gcMe
The cluster is stopped using stopCluster(cl).
stopCluster(cl)
# NOT RUN { cl <- makeClusterPSOCK(2, dryrun = TRUE) cl <- autoStopCluster(cl) print(cl) rm(list = "cl") gc() # }
Run the code above in your browser using DataLab