Running ‘spelling.R’
  Running ‘testthat.R’ [120s/202s]
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, '-'))
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● On Solaris (1)
  
  [ FAIL 0 | WARN 0 | SKIP 1 | PASS 223 ]
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  ● is_cran is TRUE (3)
  
  [ FAIL 0 | WARN 0 | SKIP 3 | PASS 32 ]
  
   *** caught segfault ***
  address f788a000, cause 'invalid permissions'
  
  Traceback:
   1: impute(Gna, method, ncores)
   2: snp_fastImputeSimple(G, "mean0")
   3: eval(code, test_env)
   4: eval(code, test_env)
   5: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
   6: doTryCatch(return(expr), name, parentenv, handler)
   7: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   8: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  11: tryCatchList(expr, classes, parentenv, handlers)
  12: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  13: test_code(desc, code, env = parent.frame(), reporter = reporter)
  14: test_that("fast imputation (simple) works", {    G <- snp_attachExtdata("example-missing.bed")$genotypes    expect_error(snp_fastImputeSimple(G, "mean"), "should be one of")    expect_warning(G1 <- snp_fastImputeSimple(G, "zero"), "deprecated")    expect_equal(G[c(18, 72), 400], rep(NA_real_, 2))    expect_equal(G1[c(18, 72), 400], rep(0, 2))    G2 <- snp_fastImputeSimple(G, "mean0")    expect_equal(G[c(18, 72), 400], rep(NA_real_, 2))    expect_equal(G2[c(18, 72), 400], rep(1, 2))    G3 <- snp_fastImputeSimple(G, "mean2")    expect_equal(G3[c(18, 72), 400], rep(1.01, 2))    G4 <- snp_fastImputeSimple(G, "mode")    expect_equal(G4[c(4, 12), 1], rep(0, 2))    expect_equal(G4[c(18, 72), 400], rep(1, 2))    imp_val <- replicate(500, {        G5 <- snp_fastImputeSimple(G, "random")        G5[c(18, 72), 400]    })    p <- mean(G[, 400], na.rm = TRUE)/2    prob <- c((1 - p)^2, 2 * p * (1 - p), p^2)    expect_gt(stats::chisq.test(table(imp_val), p = prob)$p.value,         1e-04)    expect_equal(snp_fastImputeSimple(G, method = "mean2")[],         snp_fastImputeSimple(G, method = "mean2", ncores = 2)[])})
  15: eval(code, test_env)
  16: eval(code, test_env)
  17: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  18: doTryCatch(return(expr), name, parentenv, handler)
  19: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  20: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  21: doTryCatch(return(expr), name, parentenv, handler)
  22: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  23: tryCatchList(expr, classes, parentenv, handlers)
  24: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  25: test_code(NULL, exprs, env)
  26: source_file(path, child_env(env), wrap = wrap)
  27: FUN(X[[i]], ...)
  28: lapply(test_paths, test_one_file, env = env, wrap = wrap)
  29: force(code)
  30: doWithOneRestart(return(expr), restart)
  31: withOneRestart(expr, restarts[[1L]])
  32: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  33: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  34: test_files(test_dir = test_dir, test_package = test_package,     test_paths = test_paths, load_helpers = load_helpers, reporter = reporter,     env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap, load_package = load_package)
  35: test_files(test_dir = path, test_paths = test_paths, test_package = package,     reporter = reporter, load_helpers = load_helpers, env = env,     stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap, load_package = load_package, parallel = parallel)
  36: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  37: test_check("bigsnpr", filter = paste0(k, "-"))
  An irrecoverable exception occurred. R is aborting now ...