R version 4.6.0 RC (2026-04-20 r89921 ucrt) -- "Because it was There" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > library(testthat) > library(harmony) Loading required package: Rcpp • This is Harmony2 version 2.0.1 • 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") Saving _problems/test_integration-7.R [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_integration.R:5:1'): (code run outside of `test_that()`) ─────── Error: Mat::elem(): index out of bounds Backtrace: ▆ 1. ├─harmony::RunHarmony(...) at test_integration.R:5:1 2. └─harmony:::RunHarmony.default(...) 3. ├─base::tryCatch(...) 4. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 5. └─harmonyObj$init_cluster_cpp() [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] Error: ! Test failures. Execution halted