Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(harmony)
  Loading required package: Rcpp
  • This is Harmony2 version 2.0.4
  • Read the guide: run vignette()
  • Get help: Visit the website at https://korsunskylab.github.io/harmony2/ and
  report issues on https://github.com/immunogenomics/harmony/issues
  > 
  > test_check("harmony")
  181exists, retrying for cluster 41 2.68884
  75exists, retrying for cluster 42 3.396
  156exists, retrying for cluster 46 3.32219
  22exists, retrying for cluster 48 3.474
  288exists, retrying for cluster 2 1.08737
  1478exists, retrying for cluster 17 3.28443
  101exists, retrying for cluster 37 3.34212
  Saving _problems/test_two_variable-11.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 13 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_two_variable.R:5:1'): (code run outside of `test_that()`) ──────
  <std::logic_error/C++Error/error/condition>
  Error: inv(): use of LAPACK must be enabled
  Backtrace:
      ▆
   1. ├─harmony::RunHarmony(...) at test_two_variable.R:5:1
   2. └─harmony:::RunHarmony.default(...)
   3.   ├─base::tryCatch(...)
   4.   │ └─base (local) tryCatchList(expr, classes, parentenv, handlers)
   5.   └─harmony:::harmonize(harmonyObj, max.iter.harmony, verbose)
   6.     └─harmonyObj$moe_correct_ridge_cpp()
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 13 ]
  Error:
  ! Test failures.
  Execution halted