Running 'spelling.R' [0s/0s]
  Running 'testthat.R' [90s/108s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(bigsnpr)
  Loading required package: bigstatsr
  > 
  > for (k in 1:9)
  +   test_check("bigsnpr", filter = paste0(k, '-'))
  [ FAIL 0 | WARN 0 | SKIP 1 | PASS 244 ]
  
  == Skipped tests ===============================================================
  * is_cran is TRUE (1)
  
  [ FAIL 0 | WARN 0 | SKIP 1 | PASS 244 ]
  [ FAIL 0 | WARN 0 | SKIP 3 | PASS 173 ]
  
  == Skipped tests ===============================================================
  * is_cran is TRUE (3)
  
  [ FAIL 0 | WARN 0 | SKIP 3 | PASS 173 ]
  [ FAIL 0 | WARN 0 | SKIP 2 | PASS 11 ]
  
  == Skipped tests ===============================================================
  * is_cran is TRUE (2)
  
  [ FAIL 0 | WARN 0 | SKIP 2 | PASS 11 ]
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 75 ]
  
  == Failed tests ================================================================
  -- Failure ('test-4-manhattan.R:18'): snp_manhattan() works with unordered data --
  snp_manhattan(gwas, CHR, POS) not equal to snp_manhattan(gwas[rand, ], CHR[rand], POS[rand]).
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Attributes: < Component "row.names": Mean relative difference: 0.6696528 >
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Component 1: Mean relative difference: 1.396094
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Component 2: Mean relative difference: 0.194434
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Component 3: Mean relative difference: 0.2645228
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Component 4: Mean relative difference: 1.38146
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 19: Mean relative difference: 0.6696528
  -- Failure ('test-4-manhattan.R:20'): snp_manhattan() works with unordered data --
  snp_manhattan(gwas, CHR, POS, npoints = 500) not equal to snp_manhattan(gwas[rand, ], CHR[rand], POS[rand], npoints = 500).
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Attributes: < Component "row.names": Mean relative difference: 0.6696528 >
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Component 1: Mean relative difference: 1.396094
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Component 2: Mean relative difference: 0.194434
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Component 3: Mean relative difference: 0.2645228
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Component 4: Mean relative difference: 1.38146
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 19: Mean relative difference: 0.6696528
  -- Failure ('test-4-manhattan.R:22'): snp_manhattan() works with unordered data --
  snp_manhattan(gwas, as.character(CHR), POS, npoints = 500) not equal to snp_manhattan(...).
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Attributes: < Component "row.names": Mean relative difference: 0.6696528 >
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Component 1: Mean relative difference: 1.396094
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Component 2: Mean relative difference: 0.194434
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Component 3: Mean relative difference: 0.2645228
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 9: Component 4: Mean relative difference: 1.38146
  Component "layers": Component 1: Component 12: Component 5: Component 21: Component 19: Mean relative difference: 0.6696528
  
  [ FAIL 3 | WARN 0 | SKIP 0 | PASS 75 ]
  Error: Test failures
  Execution halted