Running 'Test-class.R' [4s]
  Running 'check.R' [3s]
  Running 'cli_fcn.R' [2s]
  Running 'db_state.R' [4s]
  Running 'evaluate_expr.R' [3s]
  Running 'one-test.R' [4s]
  Running 'progress.R' [3s]
  Running 'test_db.R' [5s]
  Running 'test_plans.R' [4s]
  Running 'utils.R' [3s]
  Running 'zzz.onLoad.R' [6s]
Running the tests in 'tests/Test-class.R' failed.
Complete output:
  > library(future.tests)
  > library(future)
  > 
  > lazy <- FALSE
  > global <- TRUE
  > stdout <- TRUE
  > value <- TRUE
  > recursive <- FALSE
  > 
  > tests <- load_tests()
  > message("Number of tests: ", length(tests))
  Number of tests: 42
  > 
  > df_tests <- do.call(rbind, tests)
  > print(df_tests)
                                                                  title
  1                                               future() - conditions
  2                                                   %<-% - conditions
  3                                        future() - muffle conditions
  4                                                      Argument '...'
  5                                 Argument '...' from parent function
  6                                       Argument '...' - non existing
  7                                          Argument '...' - exception
  8                                           Early signaling of errors
  9                                           Early signaling of errors
  10                                          Early signaling of errors
  11                                          Early signaling of errors
  12                                        Early signaling of warnings
  13                                        Early signaling of warnings
  14                                        Early signaling of warnings
  15                                        Early signaling of warnings
  16                                        Early signaling of messages
  17                                        Early signaling of messages
  18                                        Early signaling of messages
  19                                        Early signaling of messages
  20                                   futureAssign() - lazy evaluation
  21                                   futureAssign() - lazy evaluation
  22                       futureAssign() - potential task name clashes
  23 futureAssign() - global variables with and without lazy evaluation
  24 futureAssign() - global variables with and without lazy evaluation
  25             futureAssign() - lazy evaluation via disposable option
  26             futureAssign() - lazy evaluation via disposable option
  27                                            %<-% - local evaluation
  28                                            %<-% - local evaluation
  29                          %<-% - local evaluation & global variable
  30                          %<-% - local evaluation & global variable
  31                                                      %<-% - errors
  32                                                      %<-% - errors
  33                                          %<-% - errors and listenv
  34                                          %<-% - errors and listenv
  35                                                        %<-% & %->%
  36                                                        %<-% & %->%
  37                                                      %<-% - nested
  38                                                       futureCall()
  39                                                       futureCall()
  40                                                       futureCall()
  41                                                       futureCall()
  42                               futureCall() - globals = list(a = 3)
  43                               futureCall() - globals = list(a = 3)
  44                                       futureCall() - globals = "a"
  45                                       futureCall() - globals = "a"
  46                                         resolved() on lazy futures
  47                             demo("mandelbrot", package = "future")
  48                             demo("mandelbrot", package = "future")
  49                                                     nbrOfWorkers()
  50                                                             plan()
  51                                         plan() - workers=<numeric>
  52                                        plan() - workers=<function>
  53                                         plan() - workers=<invalid>
  54                                                          resolve()
  55                                                          resolve()
  56                                                          resolve()
  57                                                          resolve()
  58                                                          resolve()
  59                                                          resolve()
  60                                                          resolve()
  61                                                          resolve()
  62                                     resolve() - run-time exception
  63                                     resolve() - run-time exception
  64                                     resolve() - run-time exception
  65                                     resolve() - run-time exception
  66                                     resolve() - run-time exception
  67                                     resolve() - run-time exception
  68                                     resolve() - run-time exception
  69                                     resolve() - run-time exception
  70                              resolve(<list of futures and values>)
  71                              resolve(<list of futures and values>)
  72                                         resolve(<list of futures>)
  73                                         resolve(<list of futures>)
  74 resolve(<named matrix list of futures and values>) - time ordering
  75      resolved() - assert non-blocking while launching lazy futures
  76      Random Number Generation (RNG) - seeds and preserving RNGkind
  77                            Random Number Generation (RNG) - future
  78                            Random Number Generation (RNG) - future
  79                              Random Number Generation (RNG) - %<-%
  80                              Random Number Generation (RNG) - %<-%
  81                                         future() - standard output
  82                                         future() - standard output
  83                                             %<-% - standard output
  84                                             %<-% - standard output
  85                                               value() - visibility
             tags  lazy earlySignal globals result recursive stdout
  1  future, ....    NA          NA      NA     NA        NA     NA
  2  %<-%, co....    NA          NA      NA     NA        NA     NA
  3  future, ....    NA          NA      NA     NA        NA     NA
  4     %<-%, ...    NA          NA      NA     NA        NA     NA
  5     %<-%, ...    NA          NA      NA     NA        NA     NA
  6     %<-%, ...    NA          NA      NA     NA        NA     NA
  7     %<-%, ...    NA          NA      NA     NA        NA     NA
  8  earlySig.... FALSE       FALSE      NA     NA        NA     NA
  9  earlySig....  TRUE       FALSE      NA     NA        NA     NA
  10 earlySig.... FALSE        TRUE      NA     NA        NA     NA
  11 earlySig....  TRUE        TRUE      NA     NA        NA     NA
  12 earlySig.... FALSE       FALSE      NA     NA        NA     NA
  13 earlySig....  TRUE       FALSE      NA     NA        NA     NA
  14 earlySig.... FALSE        TRUE      NA     NA        NA     NA
  15 earlySig....  TRUE        TRUE      NA     NA        NA     NA
  16 earlySig.... FALSE       FALSE      NA     NA        NA     NA
  17 earlySig....  TRUE       FALSE      NA     NA        NA     NA
  18 earlySig.... FALSE        TRUE      NA     NA        NA     NA
  19 earlySig....  TRUE        TRUE      NA     NA        NA     NA
  20 futureAs.... FALSE          NA      NA     NA        NA     NA
  21 futureAs....  TRUE          NA      NA     NA        NA     NA
  22 futureAssign    NA          NA      NA     NA        NA     NA
  23 futureAs.... FALSE          NA      NA     NA        NA     NA
  24 futureAs....  TRUE          NA      NA     NA        NA     NA
  25 futureAs.... FALSE          NA      NA     NA        NA     NA
  26 futureAs....  TRUE          NA      NA     NA        NA     NA
  27   %<-%, lazy FALSE          NA      NA     NA        NA     NA
  28   %<-%, lazy  TRUE          NA      NA     NA        NA     NA
  29 %<-%, la.... FALSE          NA      NA     NA        NA     NA
  30 %<-%, la....  TRUE          NA      NA     NA        NA     NA
  31 %<-%, la.... FALSE          NA      NA     NA        NA     NA
  32 %<-%, la....  TRUE          NA      NA     NA        NA     NA
  33 %<-%, la.... FALSE          NA      NA     NA        NA     NA
  34 %<-%, la....  TRUE          NA      NA     NA        NA     NA
  35 %<-%, %-.... FALSE          NA      NA     NA        NA     NA
  36 %<-%, %-....  TRUE          NA      NA     NA        NA     NA
  37 %<-%, nested    NA          NA      NA     NA        NA     NA
  38 futureCa.... FALSE          NA   FALSE     NA        NA     NA
  39 futureCa....  TRUE          NA   FALSE     NA        NA     NA
  40 futureCa.... FALSE          NA    TRUE     NA        NA     NA
  41 futureCa....  TRUE          NA    TRUE     NA        NA     NA
  42 futureCa.... FALSE          NA      NA     NA        NA     NA
  43 futureCa....  TRUE          NA      NA     NA        NA     NA
  44 futureCa.... FALSE          NA      NA     NA        NA     NA
  45 futureCa....  TRUE          NA      NA     NA        NA     NA
  46 resolved....    NA          NA      NA     NA        NA     NA
  47 demo, ma.... FALSE          NA      NA     NA        NA     NA
  48 demo, ma....  TRUE          NA      NA     NA        NA     NA
  49 nbrOfWorkers    NA          NA      NA     NA        NA     NA
  50         plan    NA          NA      NA     NA        NA     NA
  51 plan, wo....    NA          NA      NA     NA        NA     NA
  52 plan, wo....    NA          NA      NA     NA        NA     NA
  53 plan, wo....    NA          NA      NA     NA        NA     NA
  54 resolve,.... FALSE          NA      NA  FALSE     FALSE     NA
  55 resolve,....  TRUE          NA      NA  FALSE     FALSE     NA
  56 resolve,.... FALSE          NA      NA   TRUE     FALSE     NA
  57 resolve,....  TRUE          NA      NA   TRUE     FALSE     NA
  58 resolve,.... FALSE          NA      NA  FALSE      TRUE     NA
  59 resolve,....  TRUE          NA      NA  FALSE      TRUE     NA
  60 resolve,.... FALSE          NA      NA   TRUE      TRUE     NA
  61 resolve,....  TRUE          NA      NA   TRUE      TRUE     NA
  62 resolve,.... FALSE          NA      NA  FALSE     FALSE     NA
  63 resolve,....  TRUE          NA      NA  FALSE     FALSE     NA
  64 resolve,.... FALSE          NA      NA   TRUE     FALSE     NA
  65 resolve,....  TRUE          NA      NA   TRUE     FALSE     NA
  66 resolve,.... FALSE          NA      NA  FALSE      TRUE     NA
  67 resolve,....  TRUE          NA      NA  FALSE      TRUE     NA
  68 resolve,.... FALSE          NA      NA   TRUE      TRUE     NA
  69 resolve,....  TRUE          NA      NA   TRUE      TRUE     NA
  70 resolve,.... FALSE          NA      NA     NA        NA     NA
  71 resolve,....  TRUE          NA      NA     NA        NA     NA
  72 resolve,.... FALSE          NA      NA     NA        NA     NA
  73 resolve,....  TRUE          NA      NA     NA        NA     NA
  74 resolve,....    NA          NA      NA     NA        NA     NA
  75 resolved....    NA          NA      NA     NA        NA     NA
  76    rng, seed    NA          NA      NA     NA        NA     NA
  77 rng, see.... FALSE          NA      NA     NA        NA     NA
  78 rng, see....  TRUE          NA      NA     NA        NA     NA
  79 rng, see.... FALSE          NA      NA     NA        NA     NA
  80 rng, see....  TRUE          NA      NA     NA        NA     NA
  81 future, ....    NA          NA      NA     NA        NA  FALSE
  82 future, ....    NA          NA      NA     NA        NA   TRUE
  83 %<-%, stdout    NA          NA      NA     NA        NA  FALSE
  84 %<-%, stdout    NA          NA      NA     NA        NA   TRUE
  85 value, v....    NA          NA      NA     NA        NA     NA
  > 
  > message("Run first three tests ...")
  Run first three tests ...
  > 
  > library(future)
  > results <- run_tests(head(tests, 3L))
  Error in evaluate_expr(test$expr, envir = envir, local = FALSE, output = output,  : 
    identical(Sys.getenv(), old$envvars) is not TRUE
  Calls: run_tests -> run_test -> evaluate_expr -> stopifnot
  Error: 'identical(Sys.getenv(), state$envs)' is not TRUE
  Execution halted
Running the tests in 'tests/check.R' failed.
Complete output:
  > check <- future.tests::check
  > 
  > message("*** check() ...")
  *** check() ...
  > 
  > ## Validate options
  > check()
  Usage: Rscript -e future.tests::check --args <options>
  
  Options:
   --help                   Display this help
   --test-timeout=<seconds> Sets per-test timeout in seconds
   --test-tags=<tags>       Comma-separated tags specifying tests to include
   --test-plan=<plan>       Future plan to test against
   --session-info           Output session information at the end
  
  Example:
   Rscript -e future.tests::check --args --help
   Rscript -e future.tests::check --args --test-plan=sequential
   Rscript -e future.tests::check --args --test-plan=multisession,workers=4
  > check(.args = c("--debug", "--help"))
  Usage: Rscript -e future.tests::check --args <options>
  
  Options:
   --help                   Display this help
   --test-timeout=<seconds> Sets per-test timeout in seconds
   --test-tags=<tags>       Comma-separated tags specifying tests to include
   --test-plan=<plan>       Future plan to test against
   --session-info           Output session information at the end
  
  Example:
   Rscript -e future.tests::check --args --help
   Rscript -e future.tests::check --args --test-plan=sequential
   Rscript -e future.tests::check --args --test-plan=multisession,workers=4
  > 
  > ## Run checks with plan(sequential)
  > results <- check(plan = "sequential", session_info = TRUE, debug = TRUE)
  ── Settings ────────────────────────────────────────────────────────────────────
  - future.tests version      : 0.3.0
  - R_FUTURE_TESTS_ROOT       : 
  - Option 'future.tests.root': NULL
  - Default test set folder   : D:/RCompile/CRANpkg/lib/4.3/future.tests/test-db
  - Max number of workers     : 2
  - Timeout                   : N/A
  
  ── Running 42 test sets with plan(sequential) ──────────────────────────────────
  ℹ Backend package: future 1.29.0
  
  - future() - conditions
  \ future() - conditions (1/1)Error in evaluate_expr(test$expr, envir = envir, local = FALSE, output = output,  : 
    identical(Sys.getenv(), old$envvars) is not TRUE
  Calls: check -> check_plan
  Error: 'identical(Sys.getenv(), state$envs)' is not TRUE
  Execution halted
Running the tests in 'tests/one-test.R' failed.
Complete output:
  > library(future.tests)
  > library(future)
  > 
  > lazy <- FALSE
  > global <- TRUE
  > stdout <- TRUE
  > value <- TRUE
  > recursive <- FALSE
  > 
  > tests <- load_tests()
  > 
  > test <- tests[[1]]
  > print(test)
  Test:
  - Title: 'future() - conditions'
  - Tags: 'future', 'conditions'
  - Reset workers: FALSE
  - Arguments:
      <none>
    => Test combinations: 1
  - Expression:
      1: {
      2:     captureConditions <- function (...) 
      3:     {
      4:         conditions <- list()
      5:         withCallingHandlers(..., condition = function(c) {
      6:             conditions[[length(conditions) + 1L]] <<- c
      7:             if (inherits(c, "message")) {
      8:                 invokeRestart("muffleMessage")
      9:             }
     10:             else if (inherits(c, "warning")) {
     11:                 invokeRestart("muffleWarning")
     12:             }
     13:         })
     14:         conditions
     15:     }
     16:     truth <- captureConditions({
     17:         message("hello")
     18:         warning("whoops")
     19:         message("world")
     20:     })
     21:     f <- future({
     22:         print(1:3)
     23:         message("hello")
     24:         warning("whoops")
     25:         message("world")
     26:         42L
     27:     })
     28:     r <- result(f)
     29:     str(r)
     30:     stopifnot(value(f) == 42L)
     31:     conditions <- r$conditions
     32:     stopifnot(is.list(conditions), length(conditions) == 3L)
     33:     conditions <- lapply(conditions, FUN = function(c) c$condition)
     34:     for (kk in seq_along(conditions)) {
     35:         stopifnot(identical(class(conditions[[kk]]), class(truth[[kk]])), 
     36:             identical(conditions[[kk]]$message, truth[[kk]]$message))
     37:     }
     38:     conditions <- captureConditions(value(f))
     39:     stopifnot(is.list(conditions), length(conditions) == 3L)
     40:     for (kk in seq_along(conditions)) {
     41:         stopifnot(identical(class(conditions[[kk]]), class(truth[[kk]])), 
     42:             identical(conditions[[kk]]$message, truth[[kk]]$message))
     43:     }
     44: }
  > 
  > result <- run_test(test)
  Error in evaluate_expr(test$expr, envir = envir, local = FALSE, output = output,  : 
    identical(Sys.getenv(), old$envvars) is not TRUE
  Calls: run_test -> evaluate_expr -> stopifnot
  Error: 'identical(Sys.getenv(), state$envs)' is not TRUE
  Execution halted