Skip to content

Instantly share code, notes, and snippets.

@HanjoStudy
Last active February 17, 2021 22:17
Show Gist options
  • Save HanjoStudy/b0226be4aafe1a91b78796a32703f0ec to your computer and use it in GitHub Desktop.
Save HanjoStudy/b0226be4aafe1a91b78796a32703f0ec to your computer and use it in GitHub Desktop.
Furrr makePSOCKcluster
library(furrr)
library(parallel)
cl <- makePSOCKcluster(3)
plan(cluster, workers = cl)
future_map_dfr(...)
stopCluster(cl)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment