diff --git a/incl/mirai_cluster.R b/incl/mirai_cluster.R index 8b6cd04..48ef7e0 100644 --- a/incl/mirai_cluster.R +++ b/incl/mirai_cluster.R @@ -1,5 +1,3 @@ -if (.Platform[["OS.type"]] != "windows") { - mirai::daemons(parallelly::availableCores()) plan(mirai_cluster, workers = NULL) @@ -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") diff --git a/man/mirai_cluster.Rd b/man/mirai_cluster.Rd index 60e9c65..5d0ece5 100644 --- a/man/mirai_cluster.Rd +++ b/man/mirai_cluster.Rd @@ -39,8 +39,6 @@ An object of class \link{MiraiFuture}. Mirai-based cluster futures } \examples{ -if (.Platform[["OS.type"]] != "windows") { - mirai::daemons(parallelly::availableCores()) plan(mirai_cluster, workers = NULL) @@ -55,5 +53,6 @@ print(pi_est) plan(sequential) mirai::daemons(0) ## Shut down mirai workers +if (.Platform[["OS.type"]] != "windows") { } ## if (.Platform[["OS.type"]] != "windows") }