Skip to content

Commit

Permalink
Try to re-enable mirai_cluster example
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikBengtsson committed Apr 9, 2024
1 parent 640fd00 commit ac000e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions incl/mirai_cluster.R
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
if (.Platform[["OS.type"]] != "windows") {

mirai::daemons(parallelly::availableCores())
plan(mirai_cluster, workers = NULL)

Expand All @@ -14,4 +12,5 @@ print(pi_est)

plan(sequential)
mirai::daemons(0) ## Shut down mirai workers
if (.Platform[["OS.type"]] != "windows") {
} ## if (.Platform[["OS.type"]] != "windows")
3 changes: 1 addition & 2 deletions man/mirai_cluster.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ac000e7

Please sign in to comment.