Running ‘testthat.R’ [38s/56s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > # Learn more about the roles of various files in:
  > # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(causalBatch)
  > 
  > test_check("causalBatch")
  Found2batches
  Adjusting for1covariate(s) or covariate level(s)
  Standardizing Data across genes
  Fitting L/S model and finding priors
  Finding parametric adjustments
  Adjusting the Data
  
  Found2batches
  Adjusting for1covariate(s) or covariate level(s)
  Standardizing Data across genes
  Fitting L/S model and finding priors
  Finding parametric adjustments
  Adjusting the Data
  
  Loading required package: ks
  
  Attaching package: 'ks'
  
  The following object is masked from 'package:testthat':
  
      compare
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 37 ]
  
  ══ Skipped tests (3) ═══════════════════════════════════════════════════════════
  • On CRAN (3): 'test-causal_cdcorr.R:31:3', 'test-causal_cdcorr.R:46:3',
    'test-causal_cdcorr.R:89:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-causal_cdcorr.R:122:3'): raises warning when few samples are retained ──
  Error in `cb.align.vm_trim(Ts, Xs, retain.ratio = retain.ratio, ddx = ddx)`: No samples retained by vector matching.
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test-causal_cdcorr.R:122:3
   2. │ └─testthat:::expect_condition_matching(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─causalBatch::cb.detect.caus_cdcorr(...)
   8.   └─causalBatch::cb.align.vm_trim(...)
  
  [ FAIL 1 | WARN 0 | SKIP 3 | PASS 37 ]
  Error: Test failures
  Execution halted