Running ‘testthat.R’ [37s/87s]
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=29159 on localhost:11885 at 15:10:19.618
  starting worker pid=29413 on localhost:11885 at 15:10:20.146
  [1] "missForest imputation - in progress"
  There were 20 warnings (use warnings() to see them)
  [1] "Hmisc aregImpute imputation - in progress"
  [1] "VIM kNN imputation - in progress"
  [1] "random replacement imputation - in progress"
  [1] "mice mixed imputation - in progress"
  [1] "mi imputation - in progress"
  starting worker pid=3746 on localhost:11885 at 15:10:34.845
  starting worker pid=4043 on localhost:11885 at 15:10:35.380
  Warning messages:
  1: algorithm did not converge 
  2: algorithm did not converge 
  [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=12245 on localhost:11885 at 15:10:57.467
  starting worker pid=12497 on localhost:11885 at 15:10:57.982
  [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=21655 on localhost:11885 at 15:11:19.880
  starting worker pid=21743 on localhost:11885 at 15:11:20.566
  [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. Error: (unknown) (@test.imp_simulation.R#10)  ────────────────────────────
  missing value where TRUE/FALSE needed
  1: all_patterns(X_hat = simulated$Simulated_matrix, MD_pattern = y$MD_Pattern, NA_fraction = y$Fraction_missingness, 
         min_PDM = 2) at testthat/test.imp_simulation.R:10
  2: MAR(X_hat, MD_pattern = MD_pattern, NA_fraction = NA_fraction, min_PDM = min_PDM)
  3: mice::ampute(X_hat, prop = NA_fraction, patterns = MD_pattern_simple, freq = myfreq, 
         bycases = F, mech = "MAR")
  4: ampute.continuous(P = P, scores = scores, prop = round(prop, 3), type = type)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 35 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 1 ]
  1. Error: (unknown) (@test.imp_simulation.R#10) 
  
  Error: testthat unit tests failed
  Execution halted