R Under development (unstable) (2024-07-02 r86866 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > if (requireNamespace("future.tests")) { + mirai::daemons(0) ## Reset any daemons running + + ## FIXME: The following is disabled on MS Windows, because it will + ## result in a 'R CMD check' NOTE on "detritus in the temp directory" [1]. + ## This happens whenever we use mirai::daemons(..., dispatcher = TRUE). + ## [1] https://github.com/shikokuchuo/mirai/discussions/105 + dispatcher <- (.Platform[["OS.type"]] != "windows") + + mirai::daemons(2, dispatcher = dispatcher) + future.tests::check("future.mirai::mirai_cluster", timeout = 10.0, exit_value = FALSE) + + mirai::daemons(0) ## Reset any daemons running + gc() + } Loading required namespace: future.tests ── Settings ──────────────────────────────────────────────────────────────────── - future.tests version : 0.7.0 - R_FUTURE_TESTS_ROOT : - Option 'future.tests.root': NULL - Default test set folder : D:/RCompile/CRANpkg/lib/4.5/future.tests/test-db - Max number of workers : 2 - Timeout : 10 seconds ── Running 54 test sets with plan(future.mirai::mirai_cluster) ───────────────── ℹ Backend package: future.mirai 0.2.2 - future() - conditions \ future() - conditions (1/1) ✔ 1. future() - conditions (1 test) (171ms) - %<-% - conditions \ %<-% - conditions (1/1) ✔ 2. %<-% - conditions (1 test) (27ms) - future() - muffle conditions \ future() - muffle conditions (1/1) ✔ 3. future() - muffle conditions (1 test) (34ms) - Argument '...' \ Argument '...' (1/1) ✔ 4. Argument '...' (1 test) (9ms) - Argument '...' from parent function \ Argument '...' from parent function (1/1) ✔ 5. Argument '...' from parent function (1 test) (8ms) - Argument '...' - non existing \ Argument '...' - non existing (1/1) ✔ 6. Argument '...' - non existing (1 test) (7ms) - Argument '...' - exception \ Argument '...' - exception (1/1) ✔ 7. Argument '...' - exception (1 test) (8ms) - Early signaling of errors \ Early signaling of errors (1/4) | Early signaling of errors (2/4) / Early signaling of errors (3/4) - Early signaling of errors (4/4) ✔ 8. Early signaling of errors (4 tests) (23ms) - Early signaling of warnings \ Early signaling of warnings (1/4) | Early signaling of warnings (2/4) / Early signaling of warnings (3/4) - Early signaling of warnings (4/4) ✔ 9. Early signaling of warnings (4 tests) (20ms) - Early signaling of messages \ Early signaling of messages (1/4) | Early signaling of messages (2/4) / Early signaling of messages (3/4) - Early signaling of messages (4/4) ✔ 10. Early signaling of messages (4 tests) (21ms) - futureAssign() - lazy evaluation \ futureAssign() - lazy evaluation (1/2) | futureAssign() - lazy evaluation (2/2) ✔ 11. futureAssign() - lazy evaluation (2 tests) (11ms) - futureAssign() - potential task name clashes \ futureAssign() - potential task name clashes (1/1) ✔ 12. futureAssign() - potential task name clashes (1 test) (7ms) - futureAssign() - global variables with and without lazy evaluation \ futureAssign() - global variables with and without lazy evaluation (1/2) | futureAssign() - global variables with and without lazy evaluation (2/2) ✔ 13. futureAssign() - global variables with and without lazy evaluation (2 tests) (23ms) - futureAssign() - lazy evaluation via disposable option \ futureAssign() - lazy evaluation via disposable option (1/2) | futureAssign() - lazy evaluation via disposable option (2/2) ✔ 14. futureAssign() - lazy evaluation via disposable option (2 tests) (11ms) - %<-% - local evaluation \ %<-% - local evaluation (1/2) | %<-% - local evaluation (2/2) ✔ 15. %<-% - local evaluation (2 tests) (11ms) - %<-% - local evaluation & global variable \ %<-% - local evaluation & global variable (1/2) | %<-% - local evaluation & global variable (2/2) ✔ 16. %<-% - local evaluation & global variable (2 tests) (13ms) - %<-% - errors \ %<-% - errors (1/2) | %<-% - errors (2/2) ✔ 17. %<-% - errors (2 tests) (12ms) - %<-% - errors and listenv \ %<-% - errors and listenv (1/2) | %<-% - errors and listenv (2/2) ✔ 18. %<-% - errors and listenv (2 tests) (37ms) - %<-% & %->% \ %<-% & %->% (1/2) | %<-% & %->% (2/2) ✔ 19. %<-% & %->% (2 tests) (16ms) - %<-% - nested \ %<-% - nested (1/1) ✔ 20. %<-% - nested (1 test) (34ms) - futureCall() \ futureCall() (1/4) | futureCall() (2/4) / futureCall() (3/4) - futureCall() (4/4) ✔ 21. futureCall() (4 tests) (85ms) - futureCall() - globals = list(a = 3) \ futureCall() - globals = list(a = 3) (1/2) | futureCall() - globals = list(a = 3) (2/2) ✔ 22. futureCall() - globals = list(a = 3) (2 tests) (14ms) - futureCall() - globals = "a" \ futureCall() - globals = "a" (1/2) | futureCall() - globals = "a" (2/2) ✔ 23. futureCall() - globals = "a" (2 tests) (11ms) - future() - rm() a global variable \ future() - rm() a global variable (1/2) | future() - rm() a global variable (2/2) ✔ 24. future() - rm() a global variable (2 tests) (13ms) - future() - non-exported package objects \ future() - non-exported package objects (1/1) ✔ 25. future() - non-exported package objects (1 test) (45ms) - future() - NSE '...' \ future() - NSE '...' (1/1) ✔ 26. future() - NSE '...' (1 test) (10ms) - resolved() on lazy futures \ resolved() on lazy futures (1/1) ✔ 27. resolved() on lazy futures (1 test) (119ms) - demo("mandelbrot", package = "future") \ demo("mandelbrot", package = "future") (1/2) | demo("mandelbrot", package = "future") (2/2) ✔ 28. demo("mandelbrot", package = "future") (2 tests) (324ms) - nbrOfWorkers() \ nbrOfWorkers() (1/1) ✔ 29. nbrOfWorkers() (1 test) (1ms) - future() - preserve R options (data.table) \ future() - preserve R options (data.table) (1/1) ✔ 30. future() - preserve R options (data.table) (1 test) (2ms) - future() - 'data.table' inject \ future() - 'data.table' inject (1/1) ★ 31. future() - 'data.table' inject (1 test) (2ms) ★ lazy=FALSE, globals=TRUE, stdout=TRUE Test requires the 'data.table' package - future() - can load 'ff' package \ future() - can load 'ff' package (1/1) ★ 32. future() - can load 'ff' package (1 test) (2ms) ★ lazy=FALSE, globals=TRUE, stdout=TRUE Test requires the 'ff' package - future() - can attach 'ff' package \ future() - can attach 'ff' package (1/1) ★ 33. future() - can attach 'ff' package (1 test) (2ms) ★ lazy=FALSE, globals=TRUE, stdout=TRUE Test requires the 'ff' package - future() - preserve R options (ff) \ future() - preserve R options (ff) (1/1) ★ 34. future() - preserve R options (ff) (1 test) (2ms) ★ lazy=FALSE, globals=TRUE, stdout=TRUE Test requires the 'ff' package - plan() \ plan() (1/1) ✔ 35. plan() (1 test) (2ms) - plan() - workers= \ plan() - workers= (1/1) ★ 36. plan() - workers= (1 test) (1ms) ★ lazy=FALSE, globals=TRUE, stdout=TRUE Test skipped - plan() - workers= \ plan() - workers= (1/1) ★ 37. plan() - workers= (1 test) (1ms) ★ lazy=FALSE, globals=TRUE, stdout=TRUE Test skipped - plan() - workers= \ plan() - workers= (1/1) ★ 38. plan() - workers= (1 test) (1ms) ★ lazy=FALSE, globals=TRUE, stdout=TRUE Test skipped - resolve() \ resolve() (1/8) | resolve() (2/8) / resolve() (3/8) - resolve() (4/8) \ resolve() (5/8) | resolve() (6/8) / resolve() (7/8) - resolve() (8/8) ✔ 39. resolve() (8 tests) (4.3s) - resolve() - run-time exception \ resolve() - run-time exception (1/8) | resolve() - run-time exception (2/8) / resolve() - run-time exception (3/8) - resolve() - run-time exception (4/8) \ resolve() - run-time exception (5/8) | resolve() - run-time exception (6/8) / resolve() - run-time exception (7/8) - resolve() - run-time exception (8/8) ✔ 40. resolve() - run-time exception (8 tests) (186ms) - resolve() \ resolve() (1/2) | resolve() (2/2) ✔ 41. resolve() (2 tests) (43ms) - resolve() \ resolve() (1/2) | resolve() (2/2) ✔ 42. resolve() (2 tests) (47ms) - resolve() - time ordering \ resolve() - time ordering (1/1) ✔ 43. resolve() - time ordering (1 test) (524ms) - resolved() - assert non-blocking while launching lazy futures \ resolved() - assert non-blocking while launching lazy futures (1/1) ✔ 44. resolved() - assert non-blocking while launching lazy futures (1 test) (4.1s) - Random Number Generation (RNG) - seeds and preserving RNGkind \ Random Number Generation (RNG) - seeds and preserving RNGkind (1/1) ✔ 45. Random Number Generation (RNG) - seeds and preserving RNGkind (1 test) (3ms) - Random Number Generation (RNG) - future \ Random Number Generation (RNG) - future (1/2) | Random Number Generation (RNG) - future (2/2) ✔ 46. Random Number Generation (RNG) - future (2 tests) (215ms) - Random Number Generation (RNG) - %<-% \ Random Number Generation (RNG) - %<-% (1/2) | Random Number Generation (RNG) - %<-% (2/2) ✔ 47. Random Number Generation (RNG) - %<-% (2 tests) (87ms) - Orchestration Stability - future() does not update RNG state \ Orchestration Stability - future() does not update RNG state (1/1) ✔ 48. Orchestration Stability - future() does not update RNG state (1 test) (8ms) - Orchestration Stability - run() does not update RNG state \ Orchestration Stability - run() does not update RNG state (1/1) ✔ 49. Orchestration Stability - run() does not update RNG state (1 test) (6ms) - Orchestration Stability - result() does not update RNG state \ Orchestration Stability - result() does not update RNG state (1/1) ✔ 50. Orchestration Stability - result() does not update RNG state (1 test) (6ms) - Orchestration Stability - value() does not update RNG state \ Orchestration Stability - value() does not update RNG state (1/1) ✔ 51. Orchestration Stability - value() does not update RNG state (1 test) (6ms) - future() - standard output \ future() - standard output (1/2) | future() - standard output (2/2) ✔ 52. future() - standard output (2 tests) (49ms) - %<-% - standard output \ %<-% - standard output (1/2) | %<-% - standard output (2/2) ✔ 53. %<-% - standard output (2 tests) (21ms) - value() - visibility \ value() - visibility (1/1) ✔ 54. value() - visibility (1 test) (8ms) Number of tests: 54 Number of test steps: 98 Duration: 11.5s Results: 91 ok ✔ | 7 skips ★ | 0 errors ✖ | 0 timeouts T used (Mb) gc trigger (Mb) max used (Mb) Ncells 681394 36.4 1247720 66.7 1247720 66.7 Vcells 1394186 10.7 8388608 64.0 2560647 19.6 > > proc.time() user system elapsed 2.85 0.10 13.31