From d4c57e49e81dd2276a8ecffc8e3302fe1d12a606 Mon Sep 17 00:00:00 2001 From: Henrik Bengtsson Date: Thu, 11 Apr 2024 17:49:20 -0700 Subject: [PATCH] Avoid MS Windows check NOTE [#6] --- DESCRIPTION | 2 +- tests/globals,nested.R | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 7ae5f3d..2d18653 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: future.mirai -Version: 0.1.1-9012 +Version: 0.1.1-9013 Depends: future Imports: diff --git a/tests/globals,nested.R b/tests/globals,nested.R index 7985526..7f13f09 100644 --- a/tests/globals,nested.R +++ b/tests/globals,nested.R @@ -1,5 +1,6 @@ library(future.mirai) -plan(mirai_multisession, workers = I(1)) +mirai::daemons(1, dispatcher = FALSE) +plan(mirai_cluster g <- function() 42 h <- function() g() @@ -10,4 +11,5 @@ print(v) stopifnot(v == h()) plan(sequential) -mirai::daemons(0) +mirai::daemons(0) ## Reset any daemons running +gc()