Running 'testthat.R' [21m]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(missCompare)
  
  Attaching package: 'missCompare'
  
  The following object is masked from 'package:stats':
  
      simulate
  
  > 
  > test_check("missCompare")
  [1] "random replacement imputation - in progress"
  [1] "mice mixed imputation - in progress"
  [1] "mi imputation - in progress"
  starting worker pid=27036 on localhost:11980 at 18:13:26.947
  starting worker pid=72204 on localhost:11980 at 18:13:26.975
  Error in unserialize(node$con) : error reading from connection
  Calls: <Anonymous> -> workLoop -> makeSOCKmaster
  Execution halted
  Error in unserialize(node$con) : unknown input format
  Calls: <Anonymous> -> workLoop -> makeSOCKmaster
  Execution halted
  Saving _problems/test.imp_data-22.R
  [1] "random replacement imputation - in progress"
  [1] "mice mixed imputation - in progress"
  [1] "mi imputation - in progress"
  starting worker pid=84976 on localhost:11980 at 18:17:32.046
  starting worker pid=109852 on localhost:11980 at 18:17:32.070
  Error in unserialize(node$con) : error reading from connection
  Calls: <Anonymous> -> workLoop -> makeSOCKmaster
  Execution halted
  Error in unserialize(node$con) : unknown input format
  Calls: <Anonymous> -> workLoop -> makeSOCKmaster
  Execution halted
  Saving _problems/test.imp_data-28.R
  [1] "random replacement imputation - in progress"
  [1] "Median imputation - in progress"
  [1] "Mean imputation - in progress"
  [1] "missMDA regularized imputation - in progress"
  [1] "missMDA EM imputation - in progress"
  [1] "pcaMethods PPCA imputation - in progress"
  [1] "pcaMethods svdImpute imputation - in progress"
  [1] "pcaMethods BPCA imputation - in progress"
  [1] "pcaMethods NIPALS imputation - in progress"
  [1] "pcaMethods NLPCA imputation - in progress"
  [1] "mice mixed imputation - in progress"
  [1] "mi imputation - in progress"
  starting worker pid=46020 on localhost:11980 at 18:21:42.506
  starting worker pid=18040 on localhost:11980 at 18:21:42.559
  Error in unserialize(node$con) : error reading from connection
  Calls: <Anonymous> -> workLoop -> makeSOCKmaster
  Execution halted
  Error in unserialize(node$con) : unknown input format
  Calls: <Anonymous> -> workLoop -> makeSOCKmaster
  Execution halted
  Saving _problems/test.imp_data-34.R
  [1] "random replacement imputation - in progress"
  [1] "Median imputation - in progress"
  [1] "Mean imputation - in progress"
  [1] "missMDA regularized imputation - in progress"
  [1] "missMDA EM imputation - in progress"
  [1] "pcaMethods PPCA imputation - in progress"
  [1] "pcaMethods svdImpute imputation - in progress"
  [1] "pcaMethods BPCA imputation - in progress"
  [1] "pcaMethods NIPALS imputation - in progress"
  [1] "pcaMethods NLPCA imputation - in progress"
  [1] "mice mixed imputation - in progress"
  [1] "mi imputation - in progress"
  starting worker pid=76816 on localhost:11980 at 18:25:52.143
  starting worker pid=27392 on localhost:11980 at 18:25:52.159
  Error in unserialize(node$con) : error reading from connection
  Calls: <Anonymous> -> workLoop -> makeSOCKmaster
  Execution halted
  Error in unserialize(node$con) : error reading from connection
  Calls: <Anonymous> -> workLoop -> makeSOCKmaster
  Execution halted
  Saving _problems/test.imp_data-40.R
  [1] "Median imputation - in progress"
  [1] "Mean imputation - in progress"
  [1] "missMDA regularized imputation - in progress"
  [1] "missMDA EM imputation - in progress"
  [1] "pcaMethods svdImpute imputation - in progress"
  [1] "pcaMethods BPCA imputation - in progress"
  [1] "pcaMethods NIPALS imputation - in progress"
  [1] "VIM kNN imputation - in progress"
  [1] "random replacement imputation - in progress"
  [1] "ITERATION 1 OF TOTAL 1 - IN PROGRESS"
  [1] "random replacement imputation - in progress"
  [1] "Median imputation - in progress"
  [1] "Mean imputation - in progress"
  [1] "missMDA regularized imputation - in progress"
  [1] "missMDA EM imputation - in progress"
  [1] "pcaMethods PPCA imputation - in progress"
  [1] "pcaMethods svdImpute imputation - in progress"
  [1] "pcaMethods BPCA imputation - in progress"
  [1] "pcaMethods NIPALS imputation - in progress"
  [1] "pcaMethods NLPCA imputation - in progress"
  [1] "mice mixed imputation - in progress"
  [1] "mi imputation - in progress"
  starting worker pid=16624 on localhost:11980 at 18:30:10.740
  starting worker pid=80416 on localhost:11980 at 18:30:10.741
  Error in unserialize(node$con) : error reading from connection
  Calls: <Anonymous> -> workLoop -> makeSOCKmaster
  Execution halted
  Error in unserialize(node$con) : error reading from connection
  Calls: <Anonymous> -> workLoop -> makeSOCKmaster
  Execution halted
  Saving _problems/test.imp_simulation-23.R
  [ FAIL 5 | WARN 1 | SKIP 0 | PASS 31 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test.imp_data.R:22:3'): factors OK scaling runs OK ────────────────
  `impute_data(...)` threw an error.
  Message: Cluster setup failed. 2 of 2 workers failed to connect.
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test.imp_data.R:22:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─missCompare::impute_data(...)
    7.   ├─utils::capture.output(...)
    8.   │ └─base::withVisible(...elt(i))
    9.   ├─mi::mi(as.data.frame(X), n.chain = 1, n.iter = 100, verbose = FALSE)
   10.   └─mi::mi(as.data.frame(X), n.chain = 1, n.iter = 100, verbose = FALSE)
   11.     └─mi (local) .local(y, ...)
   12.       ├─mi::mi(...)
   13.       └─mi::mi(...)
   14.         └─mi (local) .local(y, ...)
   15.           └─parallel::makeCluster(cores, outfile = "")
   16.             └─parallel::makePSOCKcluster(names = spec, ...)
  ── Failure ('test.imp_data.R:28:3'): factors OK no scaling runs OK ─────────────
  `impute_data(...)` threw an error.
  Message: Cluster setup failed. 2 of 2 workers failed to connect.
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test.imp_data.R:28:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─missCompare::impute_data(...)
    7.   ├─utils::capture.output(...)
    8.   │ └─base::withVisible(...elt(i))
    9.   ├─mi::mi(as.data.frame(X), n.chain = 1, n.iter = 100, verbose = FALSE)
   10.   └─mi::mi(as.data.frame(X), n.chain = 1, n.iter = 100, verbose = FALSE)
   11.     └─mi (local) .local(y, ...)
   12.       ├─mi::mi(...)
   13.       └─mi::mi(...)
   14.         └─mi (local) .local(y, ...)
   15.           └─parallel::makeCluster(cores, outfile = "")
   16.             └─parallel::makePSOCKcluster(names = spec, ...)
  ── Failure ('test.imp_data.R:34:3'): runs OK when all numeric and with scaling ──
  `impute_data(small, n.iter = 1, scale = T, sel_method = c(1:16))` threw an error.
  Message: Cluster setup failed. 2 of 2 workers failed to connect.
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test.imp_data.R:34:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─missCompare::impute_data(small, n.iter = 1, scale = T, sel_method = c(1:16))
    7.   ├─utils::capture.output(...)
    8.   │ └─base::withVisible(...elt(i))
    9.   ├─mi::mi(as.data.frame(X), n.chain = 1, n.iter = 100, verbose = FALSE)
   10.   └─mi::mi(as.data.frame(X), n.chain = 1, n.iter = 100, verbose = FALSE)
   11.     └─mi (local) .local(y, ...)
   12.       ├─mi::mi(...)
   13.       └─mi::mi(...)
   14.         └─mi (local) .local(y, ...)
   15.           └─parallel::makeCluster(cores, outfile = "")
   16.             └─parallel::makePSOCKcluster(names = spec, ...)
  ── Failure ('test.imp_data.R:40:3'): runs OK when all numeric and without scaling ──
  `suppressWarnings(impute_data(small, n.iter = 1, scale = F, sel_method = c(1:16)))` threw an error.
  Message: Cluster setup failed. 2 of 2 workers failed to connect.
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test.imp_data.R:40:3
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─base::suppressWarnings(...)
    7. │ └─base::withCallingHandlers(...)
    8. └─missCompare::impute_data(small, n.iter = 1, scale = F, sel_method = c(1:16))
    9.   ├─utils::capture.output(...)
   10.   │ └─base::withVisible(...elt(i))
   11.   ├─mi::mi(as.data.frame(X), n.chain = 1, n.iter = 100, verbose = FALSE)
   12.   └─mi::mi(as.data.frame(X), n.chain = 1, n.iter = 100, verbose = FALSE)
   13.     └─mi (local) .local(y, ...)
   14.       ├─mi::mi(...)
   15.       └─mi::mi(...)
   16.         └─mi (local) .local(y, ...)
   17.           └─parallel::makeCluster(cores, outfile = "")
   18.             └─parallel::makePSOCKcluster(names = spec, ...)
  ── Failure ('test.imp_simulation.R:17:3'): simulation runs without errors ──────
  `impute_simulated(...)` threw an error.
  Message: Cluster setup failed. 2 of 2 workers failed to connect.
  Class:   simpleError/error/condition
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(...) at test.imp_simulation.R:17:3
    2. │ └─base::withCallingHandlers(...)
    3. ├─testthat::expect_error(...)
    4. │ └─testthat:::quasi_capture(...)
    5. │   ├─testthat (local) .capture(...)
    6. │   │ └─base::withCallingHandlers(...)
    7. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. └─missCompare::impute_simulated(...)
    9.   ├─base::as.data.frame(test_mi(sim$Simulated_matrix, list = res))
   10.   └─missCompare::test_mi(sim$Simulated_matrix, list = res)
   11.     ├─utils::capture.output(results <- lapply(list, mi_imp))
   12.     │ └─base::withVisible(...elt(i))
   13.     └─base::lapply(list, mi_imp)
   14.       └─missCompare (local) FUN(X[[i]], ...)
   15.         ├─mi::mi(as.data.frame(X), n.chain = 1, n.iter = 100, verbose = FALSE)
   16.         └─mi::mi(as.data.frame(X), n.chain = 1, n.iter = 100, verbose = FALSE)
   17.           └─mi (local) .local(y, ...)
   18.             ├─mi::mi(...)
   19.             └─mi::mi(...)
   20.               └─mi (local) .local(y, ...)
   21.                 └─parallel::makeCluster(cores, outfile = "")
   22.                   └─parallel::makePSOCKcluster(names = spec, ...)
  
  [ FAIL 5 | WARN 1 | SKIP 0 | PASS 31 ]
  Error:
  ! Test failures.
  Execution halted