Running ‘spelling.R’
  Running ‘testthat.R’ [10s/13s]
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, '-'))
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-1-attach.R:7:1): (code run outside of `test_that()`) ────────────
  Error: Not implemented on this platform: `ps_disk_usage`
  Backtrace:
       █
    1. └─bigsnpr::snp_attachExtdata() test-1-attach.R:7:0
    2.   ├─bigsnpr::snp_attach(snp_readBed(bedfile, backingfile = tempfile()))
    3.   │ └─bigassertr::assert_exist(rdsfile)
    4.   │   └─base::file.exists(file)
    5.   └─bigsnpr::snp_readBed(bedfile, backingfile = tempfile())
    6.     └─bigstatsr::FBM.code256(...)
    7.       ├─base::do.call(...)
    8.       └─(function (Class, ...) ...
    9.         ├─methods::initialize(value, ...)
   10.         └─methods::initialize(value, ...)
   11.           └─.Object$initialize(...)
   12.             └─bigstatsr:::callSuper(...)
   13.               └─bigstatsr:::assert_disk_space(bkfile, .self$file_size)
   14.                 └─ps::ps_disk_usage(dirname(path))
  ── Error (test-1-fake.R:9:1): (code run outside of `test_that()`) ──────────────
  Error: Not implemented on this platform: `ps_disk_usage`
  Backtrace:
       █
    1. └─bigsnpr::snp_fake(n, m) test-1-fake.R:9:0
    2.   └─bigstatsr::FBM.code256(n, m, code = CODE_012, init = as.raw(3))
    3.     ├─base::do.call(...)
    4.     └─(function (Class, ...) ...
    5.       ├─methods::initialize(value, ...)
    6.       └─methods::initialize(value, ...)
    7.         └─.Object$initialize(...)
    8.           └─bigstatsr:::callSuper(...)
    9.             └─bigstatsr:::assert_disk_space(bkfile, .self$file_size)
   10.               └─ps::ps_disk_usage(dirname(path))
  ── Error (test-1-get-save-infos.R:5:1): (code run outside of `test_that()`) ────
  Error: Not implemented on this platform: `ps_disk_usage`
  Backtrace:
       █
    1. └─bigsnpr::snp_attachExtdata() test-1-get-save-infos.R:5:0
    2.   ├─bigsnpr::snp_attach(snp_readBed(bedfile, backingfile = tempfile()))
    3.   │ └─bigassertr::assert_exist(rdsfile)
    4.   │   └─base::file.exists(file)
    5.   └─bigsnpr::snp_readBed(bedfile, backingfile = tempfile())
    6.     └─bigstatsr::FBM.code256(...)
    7.       ├─base::do.call(...)
    8.       └─(function (Class, ...) ...
    9.         ├─methods::initialize(value, ...)
   10.         └─methods::initialize(value, ...)
   11.           └─.Object$initialize(...)
   12.             └─bigstatsr:::callSuper(...)
   13.               └─bigstatsr:::assert_disk_space(bkfile, .self$file_size)
   14.                 └─ps::ps_disk_usage(dirname(path))
  ── Failure (test-1-readBGEN.R:32:3): raises some errors ────────────────────────
  `snp_attach(...)` threw an error with unexpected message.
  Expected match: "Wrong format of some variants."
  Actual message: "Not implemented on this platform: `ps_disk_usage`"
  Backtrace:
       █
    1. ├─testthat::expect_error(...) test-1-readBGEN.R:32:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat:::.capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─bigsnpr::snp_attach(...)
    7. │ └─bigassertr::assert_exist(rdsfile)
    8. │   └─base::file.exists(file)
    9. └─bigsnpr::snp_readBGEN(...)
   10.   └─bigstatsr::FBM.code256(...)
   11.     ├─base::do.call(...)
   12.     └─(function (Class, ...) ...
   13.       ├─methods::initialize(value, ...)
   14.       └─methods::initialize(value, ...)
   15.         └─.Object$initialize(...)
   16.           └─bigstatsr:::callSuper(...)
   17.             └─bigstatsr:::assert_disk_space(bkfile, .self$file_size)
   18.               └─ps::ps_disk_usage(dirname(path))
  ── Error (test-1-readBGEN.R:50:3): same as package {rbgen} ─────────────────────
  Error: Not implemented on this platform: `ps_disk_usage`
  Backtrace:
       █
    1. └─base::replicate(...) test-1-readBGEN.R:50:2
    2.   └─base::sapply(...)
    3.     └─base::lapply(X = X, FUN = FUN, ...)
    4.       └─bigsnpr:::FUN(X[[i]], ...)
    5.         ├─bigsnpr::snp_attach(...) test-1-readBGEN.R:51:4
    6.         │ └─bigassertr::assert_exist(rdsfile)
    7.         │   └─base::file.exists(file)
    8.         └─bigsnpr::snp_readBGEN(bgen_file, tempfile(), list(IDs), ncores = ncores())
    9.           └─bigstatsr::FBM.code256(...)
   10.             ├─base::do.call(...)
   11.             └─(function (Class, ...) ...
   12.               ├─methods::initialize(value, ...)
   13.               └─methods::initialize(value, ...)
   14.                 └─.Object$initialize(...)
   15.                   └─bigstatsr:::callSuper(...)
   16.                     └─bigstatsr:::assert_disk_space(bkfile, .self$file_size)
   17.                       └─ps::ps_disk_usage(dirname(path))
  ── Error (test-1-readBGEN.R:65:3): works with a subset of SNPs ─────────────────
  Error: Not implemented on this platform: `ps_disk_usage`
  Backtrace:
       █
    1. ├─bigsnpr::snp_attach(...) test-1-readBGEN.R:65:2
    2. │ └─bigassertr::assert_exist(rdsfile)
    3. │   └─base::file.exists(file)
    4. └─bigsnpr::snp_readBGEN(...)
    5.   └─bigstatsr::FBM.code256(...)
    6.     ├─base::do.call(...)
    7.     └─(function (Class, ...) ...
    8.       ├─methods::initialize(value, ...)
    9.       └─methods::initialize(value, ...)
   10.         └─.Object$initialize(...)
   11.           └─bigstatsr:::callSuper(...)
   12.             └─bigstatsr:::assert_disk_space(bkfile, .self$file_size)
   13.               └─ps::ps_disk_usage(dirname(path))
  ── Error (test-1-readBGEN.R:79:3): works with a subset of individuals ──────────
  Error: Not implemented on this platform: `ps_disk_usage`
  Backtrace:
       █
    1. ├─bigsnpr::snp_attach(...) test-1-readBGEN.R:79:2
    2. │ └─bigassertr::assert_exist(rdsfile)
    3. │   └─base::file.exists(file)
    4. └─bigsnpr::snp_readBGEN(...)
    5.   └─bigstatsr::FBM.code256(...)
    6.     ├─base::do.call(...)
    7.     └─(function (Class, ...) ...
    8.       ├─methods::initialize(value, ...)
    9.       └─methods::initialize(value, ...)
   10.         └─.Object$initialize(...)
   11.           └─bigstatsr:::callSuper(...)
   12.             └─bigstatsr:::assert_disk_space(bkfile, .self$file_size)
   13.               └─ps::ps_disk_usage(dirname(path))
  ── Error (test-1-readBGEN.R:93:3): works with multiple files ───────────────────
  Error: Not implemented on this platform: `ps_disk_usage`
  Backtrace:
       █
    1. ├─bigsnpr::snp_attach(...) test-1-readBGEN.R:93:2
    2. │ └─bigassertr::assert_exist(rdsfile)
    3. │   └─base::file.exists(file)
    4. └─bigsnpr::snp_readBGEN(...)
    5.   └─bigstatsr::FBM.code256(...)
    6.     ├─base::do.call(...)
    7.     └─(function (Class, ...) ...
    8.       ├─methods::initialize(value, ...)
    9.       └─methods::initialize(value, ...)
   10.         └─.Object$initialize(...)
   11.           └─bigstatsr:::callSuper(...)
   12.             └─bigstatsr:::assert_disk_space(bkfile, .self$file_size)
   13.               └─ps::ps_disk_usage(dirname(path))
  ── Error (test-1-readBGEN.R:104:3): read as random hard calls ──────────────────
  Error: Not implemented on this platform: `ps_disk_usage`
  Backtrace:
       █
    1. ├─bigsnpr::snp_attach(snp_readBGEN(bgen_file, tempfile(), list(IDs))) test-1-readBGEN.R:104:2
    2. │ └─bigassertr::assert_exist(rdsfile)
    3. │   └─base::file.exists(file)
    4. └─bigsnpr::snp_readBGEN(bgen_file, tempfile(), list(IDs))
    5.   └─bigstatsr::FBM.code256(...)
    6.     ├─base::do.call(...)
    7.     └─(function (Class, ...) ...
    8.       ├─methods::initialize(value, ...)
    9.       └─methods::initialize(value, ...)
   10.         └─.Object$initialize(...)
   11.           └─bigstatsr:::callSuper(...)
   12.             └─bigstatsr:::assert_disk_space(bkfile, .self$file_size)
   13.               └─ps::ps_disk_usage(dirname(path))
  ── Error (test-1-readBed.R:18:1): (code run outside of `test_that()`) ──────────
  Error: Not implemented on this platform: `ps_disk_usage`
  Backtrace:
       █
    1. └─bigsnpr::snp_attachExtdata() test-1-readBed.R:18:0
    2.   ├─bigsnpr::snp_attach(snp_readBed(bedfile, backingfile = tempfile()))
    3.   │ └─bigassertr::assert_exist(rdsfile)
    4.   │   └─base::file.exists(file)
    5.   └─bigsnpr::snp_readBed(bedfile, backingfile = tempfile())
    6.     └─bigstatsr::FBM.code256(...)
    7.       ├─base::do.call(...)
    8.       └─(function (Class, ...) ...
    9.         ├─methods::initialize(value, ...)
   10.         └─methods::initialize(value, ...)
   11.           └─.Object$initialize(...)
   12.             └─bigstatsr:::callSuper(...)
   13.               └─bigstatsr:::assert_disk_space(bkfile, .self$file_size)
   14.                 └─ps::ps_disk_usage(dirname(path))
  ── Error (test-1-subset.R:5:1): (code run outside of `test_that()`) ────────────
  Error: Not implemented on this platform: `ps_disk_usage`
  Backtrace:
       █
    1. └─bigsnpr::snp_attachExtdata() test-1-subset.R:5:0
    2.   ├─bigsnpr::snp_attach(snp_readBed(bedfile, backingfile = tempfile()))
    3.   │ └─bigassertr::assert_exist(rdsfile)
    4.   │   └─base::file.exists(file)
    5.   └─bigsnpr::snp_readBed(bedfile, backingfile = tempfile())
    6.     └─bigstatsr::FBM.code256(...)
    7.       ├─base::do.call(...)
    8.       └─(function (Class, ...) ...
    9.         ├─methods::initialize(value, ...)
   10.         └─methods::initialize(value, ...)
   11.           └─.Object$initialize(...)
   12.             └─bigstatsr:::callSuper(...)
   13.               └─bigstatsr:::assert_disk_space(bkfile, .self$file_size)
   14.                 └─ps::ps_disk_usage(dirname(path))
  ── Error (test-1-writeBed.R:8:1): (code run outside of `test_that()`) ──────────
  Error: Not implemented on this platform: `ps_disk_usage`
  Backtrace:
       █
    1. └─bigsnpr::snp_fake(N, M) test-1-writeBed.R:8:0
    2.   └─bigstatsr::FBM.code256(n, m, code = CODE_012, init = as.raw(3))
    3.     ├─base::do.call(...)
    4.     └─(function (Class, ...) ...
    5.       ├─methods::initialize(value, ...)
    6.       └─methods::initialize(value, ...)
    7.         └─.Object$initialize(...)
    8.           └─bigstatsr:::callSuper(...)
    9.             └─bigstatsr:::assert_disk_space(bkfile, .self$file_size)
   10.               └─ps::ps_disk_usage(dirname(path))
  
  [ FAIL 12 | WARN 0 | SKIP 0 | PASS 9 ]
  Error: Test failures
  Execution halted