Running 'spelling.R' [0s]
  Running 'testthat.R' [69s]
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 0 | PASS 224 ]
  == Skipped tests ===============================================================
  * is_cran is TRUE (3)
  
  [ FAIL 0 | WARN 0 | SKIP 3 | PASS 32 ]
  == Skipped tests ===============================================================
  * is_cran is TRUE (1)
  
  == Warnings ====================================================================
  -- Warning (test-3-plink-QC.R:51:3): relatedness QC (IBD) ----------------------
  File 'D:\temp\Rtmp6hV2KS\file15a3838e46b4b.genome' has size 0. Returning a NULL data.frame.
  Backtrace:
   1. bigsnpr::snp_plinkIBDQC(...) test-3-plink-QC.R:51:2
   2. bigreadr::fread2(genome_file)
   3. data.table::fread(input, ..., data.table = data.table, nThread = nThread)
  -- Warning (test-3-plink-QC.R:109:5): relatedness QC (KING) --------------------
  cannot open file 'D:\temp\Rtmp6hV2KS\file15a38562f4cfe.king.cutoff.out.id': No such file or directory
  Backtrace:
   1. testthat::expect_identical(...) test-3-plink-QC.R:109:4
   4. base::readLines(sub_bed(bedfile3, ".king.cutoff.out.id"))
   5. base::file(con, "r")
  
  == Failed tests ================================================================
  -- Error (test-3-plink-QC.R:68:3): relatedness QC (IBD) ------------------------
  Error: not enough 'x' observations
  Backtrace:
      x
   1. +-testthat::expect_lt(...) test-3-plink-QC.R:68:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. +-stats::t.test(K[ind.pair], K, alternative = "greater")
   5. \-stats:::t.test.default(K[ind.pair], K, alternative = "greater")
  -- Error (test-3-plink-QC.R:109:5): relatedness QC (KING) ----------------------
  Error: cannot open the connection
  Backtrace:
      x
   1. +-testthat::expect_identical(...) test-3-plink-QC.R:109:4
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-base::readLines(sub_bed(bedfile3, ".king.cutoff.out.id"))
   5.   \-base::file(con, "r")
  
  [ FAIL 2 | WARN 2 | SKIP 1 | PASS 19 ]
  Error: Test failures
  Execution halted