Running ‘testthat.R’ [29s/74s]
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"
  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=3667833 on localhost:11171 at 17:13:03.288
  starting worker pid=3667834 on localhost:11171 at 17:13:03.446
  [1] "missForest imputation - in progress"
  [1] "Hmisc aregImpute imputation - in progress"
  [1] "VIM kNN imputation - 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=3675943 on localhost:11171 at 17:13:16.317
  starting worker pid=3675942 on localhost:11171 at 17:13:16.333
  [1] "Amelia II imputation - in progress"
  [1] "missForest imputation - in progress"
  [1] "Hmisc aregImpute imputation - in progress"
  [1] "VIM kNN imputation - 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=3684767 on localhost:11171 at 17:13:29.619
  starting worker pid=3684769 on localhost:11171 at 17:13:29.680
  [1] "Amelia II imputation - in progress"
  [1] "missForest imputation - in progress"
  [1] "Hmisc aregImpute imputation - in progress"
  [1] "VIM kNN 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 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=3697608 on localhost:11171 at 17:13:49.726
  starting worker pid=3697606 on localhost:11171 at 17:13:49.795
  starting worker pid=3699148 on localhost:11171 at 17:13:53.456
  starting worker pid=3699149 on localhost:11171 at 17:13:53.536
  starting worker pid=3701053 on localhost:11171 at 17:13:57.100
  starting worker pid=3701054 on localhost:11171 at 17:13:57.170
  [1] "Amelia II imputation - in progress"
  [1] "missForest imputation - in progress"
  [1] "Hmisc aregImpute imputation - in progress"
  [1] "VIM kNN imputation - in progress"
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 35 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test.imp_data.R:22:3'): factors OK scaling runs OK ────────────────
  `impute_data(...)` threw an error.
  Message: creation of server socket failed: port 11171 cannot be opened
  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, ...)
   17.               └─base::serverSocket(port = port)
  
  [ FAIL 1 | WARN 1 | SKIP 0 | PASS 35 ]
  Error:
  ! Test failures.
  Execution halted