Running 'spelling.R' [0s]
  Running 'testthat.R' [14s]
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 12 | WARN 0 | SKIP 1 | PASS 151 ]
  
  == Skipped tests ===============================================================
  * is_cran is TRUE (1)
  
  == Failed tests ================================================================
  -- Error ('test-1-prodBGEN.R:37'): same as with intermediate FBM ---------------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. +-... %>% .$genotypes at test-1-prodBGEN.R:37:2
   2. +-bigsnpr::snp_attach(.)
   3. | \-bigassertr::assert_exist(rdsfile)
   4. |   \-base::file.exists(file)
   5. \-bigsnpr::snp_readBGEN(bgen_file, tempfile(), list(IDs), ncores = ncores())
   6.   \-base::tryCatch(...)
   7.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   8.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9.         \-value[[3L]](cond)
  -- Error ('test-1-prodBGEN.R:69'): works with a subset of SNPs -----------------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. +-bigsnpr::snp_attach(...) at test-1-prodBGEN.R:69:2
   2. | \-bigassertr::assert_exist(rdsfile)
   3. |   \-base::file.exists(file)
   4. \-bigsnpr::snp_readBGEN(...)
   5.   \-base::tryCatch(...)
   6.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         \-value[[3L]](cond)
  -- Error ('test-1-prodBGEN.R:81'): works with a subset of individuals ----------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. +-bigsnpr::snp_attach(...) at test-1-prodBGEN.R:81:2
   2. | \-bigassertr::assert_exist(rdsfile)
   3. |   \-base::file.exists(file)
   4. \-bigsnpr::snp_readBGEN(...)
   5.   \-base::tryCatch(...)
   6.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         \-value[[3L]](cond)
  -- Error ('test-1-prodBGEN.R:97'): works with multiple files -------------------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. +-bigsnpr::snp_attach(...) at test-1-prodBGEN.R:97:2
   2. | \-bigassertr::assert_exist(rdsfile)
   3. |   \-base::file.exists(file)
   4. \-bigsnpr::snp_readBGEN(...)
   5.   \-base::tryCatch(...)
   6.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         \-value[[3L]](cond)
  -- Error ('test-1-readBGEN.R:31'): snp_readBGI() can return the full variant information --
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
       x
    1. +-bigsnpr::snp_readBGI(paste0(bgen_file, ".bgi")) at test-1-readBGEN.R:31:2
    2. | +-... %>% dplyr::collect()
    3. | +-dplyr::tbl(db_con, "Variant")
    4. | \-dplyr:::tbl.DBIConnection(db_con, "Variant")
    5. |   +-dplyr::tbl(...)
    6. |   \-dbplyr:::tbl.src_dbi(...)
    7. |     \-dbplyr::tbl_sql(c(subclass, "dbi"), src = src, from = from, ...)
    8. |       +-vars %||% dbplyr_query_fields(src$con, from)
    9. |       \-dbplyr:::dbplyr_query_fields(src$con, from)
   10. |         \-dbplyr:::dbplyr_fallback(con, "db_query_fields", ...)
   11. |           +-rlang::eval_bare(expr((!!fun)(con, ...)))
   12. |           \-dbplyr:::db_query_fields.DBIConnection(con, ...)
   13. |             +-dbplyr::sql_query_fields(con, sql, ...)
   14. |             \-dbplyr:::sql_query_fields.DBIConnection(con, sql, ...)
   15. |               \-dbplyr:::dbplyr_query_select(...)
   16. |                 \-dbplyr:::dbplyr_fallback(con, "sql_select", ...)
   17. |                   +-rlang::eval_bare(expr((!!fun)(con, ...)))
   18. |                   \-dbplyr:::sql_select.DBIConnection(con, ...)
   19. |                     +-dbplyr::sql_query_select(...)
   20. |                     \-dbplyr:::sql_query_select.DBIConnection(...)
   21. |                       +-dbplyr:::sql_select_clauses(...)
   22. |                       \-dbplyr:::sql_clause_select(con, select, distinct)
   23. |                         \-dbplyr::build_sql(...)
   24. +-dplyr::collect(.)
   25. +-dplyr::mutate(., file_start_position = as.double(file_start_position))
   26. \-base::loadNamespace(x)
   27.   \-base::library.dynam(lib, package, package.lib)
  -- Error ('test-1-readBGEN.R:58'): same as package {rbgen} ---------------------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
       x
    1. \-base::replicate(...) at test-1-readBGEN.R:58:2
    2.   \-base::sapply(...)
    3.     \-base::lapply(X = X, FUN = FUN, ...)
    4.       \-bigsnpr (local) FUN(X[[i]], ...)
    5.         +-bigsnpr::snp_attach(...) at test-1-readBGEN.R:59:4
    6.         | \-bigassertr::assert_exist(rdsfile)
    7.         |   \-base::file.exists(file)
    8.         \-bigsnpr::snp_readBGEN(bgen_file, tempfile(), list(IDs), ncores = ncores())
    9.           \-base::tryCatch(...)
   10.             \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   11.               \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   12.                 \-value[[3L]](cond)
  -- Error ('test-1-readBGEN.R:71'): same variant infos as with QCTOOL -----------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. +-bigsnpr::snp_attach(...) at test-1-readBGEN.R:71:2
   2. | \-bigassertr::assert_exist(rdsfile)
   3. |   \-base::file.exists(file)
   4. \-bigsnpr::snp_readBGEN(bgen_file, tempfile(), list(IDs), ncores = ncores())
   5.   \-base::tryCatch(...)
   6.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         \-value[[3L]](cond)
  -- Error ('test-1-readBGEN.R:92'): works with a subset of SNPs -----------------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. +-bigsnpr::snp_attach(...) at test-1-readBGEN.R:92:2
   2. | \-bigassertr::assert_exist(rdsfile)
   3. |   \-base::file.exists(file)
   4. \-bigsnpr::snp_readBGEN(...)
   5.   \-base::tryCatch(...)
   6.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         \-value[[3L]](cond)
  -- Error ('test-1-readBGEN.R:106'): works with a subset of individuals ---------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. +-bigsnpr::snp_attach(...) at test-1-readBGEN.R:106:2
   2. | \-bigassertr::assert_exist(rdsfile)
   3. |   \-base::file.exists(file)
   4. \-bigsnpr::snp_readBGEN(...)
   5.   \-base::tryCatch(...)
   6.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         \-value[[3L]](cond)
  -- Error ('test-1-readBGEN.R:120'): works with multiple files ------------------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. +-bigsnpr::snp_attach(...) at test-1-readBGEN.R:120:2
   2. | \-bigassertr::assert_exist(rdsfile)
   3. |   \-base::file.exists(file)
   4. \-bigsnpr::snp_readBGEN(...)
   5.   \-base::tryCatch(...)
   6.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         \-value[[3L]](cond)
  -- Error ('test-1-readBGEN.R:132'): read as random hard calls ------------------
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. +-bigsnpr::snp_attach(snp_readBGEN(bgen_file, tempfile(), list(IDs))) at test-1-readBGEN.R:132:2
   2. | \-bigassertr::assert_exist(rdsfile)
   3. |   \-base::file.exists(file)
   4. \-bigsnpr::snp_readBGEN(bgen_file, tempfile(), list(IDs))
   5.   \-base::tryCatch(...)
   6.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         \-value[[3L]](cond)
  -- Error ('test-1-readBGEN.R:150'): work with duplicated variants or individuals --
  Error in `library.dynam(lib, package, package.lib)`: DLL 'purrr' not found: maybe not installed for this architecture?
  Backtrace:
      x
   1. +-bigsnpr::snp_attach(...) at test-1-readBGEN.R:150:2
   2. | \-bigassertr::assert_exist(rdsfile)
   3. |   \-base::file.exists(file)
   4. \-bigsnpr::snp_readBGEN(...)
   5.   \-base::tryCatch(...)
   6.     \-base (local) tryCatchList(expr, classes, parentenv, handlers)
   7.       \-base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8.         \-value[[3L]](cond)
  
  [ FAIL 12 | WARN 0 | SKIP 1 | PASS 151 ]
  Error: Test failures
  Execution halted