Running ‘testthat.R’ [3s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(treenomial)
  > 
  > test_check("treenomial")
  
   *** caught segfault ***
  address 0x55ce6c7720c0, cause 'memory not mapped'
  
  Traceback:
   1: coeffMatList(wedgeSeq, y = 0, type = type, tipLabA = uniqueTipLabFirst[[1]],     tipLabB = uniqueTipLabFirst[[2]], nThreads = numThreads)
   2: treeToPoly(differentSizeTrees, type = "tipLabel", numThreads = 0)
   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("test different size trees with binary trait labels",     {        largerTree <- rtree(30)        largerTree$tip.label <- sample(c("t1", "t2"), size = 30,             replace = TRUE)        smallerTree <- rtree(2)        coeffs <- treeToPoly(c(largerTree, smallerTree), type = "tipLabel",             numThreads = 0)        coeffs <- alignPoly(coeffs)        firstDims <- dim(coeffs[[1]])        res <- lapply(coeffs, function(i) dim(i) == firstDims)        expect_condition(all(res))        largerTrees <- rmtree(10, 10)        largerTrees <- lapply(largerTrees, function(i) {            i$tip.label <- sample(c("t1", "t2"), size = 10, replace = TRUE)            return(i)        })        differentSizeTrees <- c(largerTrees, list(rtree(2)))        coeffs <- treeToPoly(differentSizeTrees, type = "tipLabel",             numThreads = 0)        coeffs <- alignPoly(coeffs)        firstDims <- dim(coeffs[[1]])        res <- lapply(coeffs, function(i) dim(i) == firstDims)        expect_condition(all(res))        largerTrees <- rmtree(10, 10)        largerTrees <- lapply(largerTrees, function(i) {            i$tip.label <- sample(c("t1", "t2"), size = 10, replace = TRUE)            return(i)        })        smallerTrees <- rmtree(50, 5)        smallerTrees <- lapply(smallerTrees, function(i) {            i$tip.label <- sample(c("t1", "t2"), size = 5, replace = TRUE)            return(i)        })        differentSizeTrees <- c(largerTrees, smallerTrees)        coeffs <- treeToPoly(differentSizeTrees, type = "tipLabel",             numThreads = 0)        coeffs <- alignPoly(coeffs)        firstDims <- dim(coeffs[[1]])        res <- lapply(coeffs, function(i) dim(i) == firstDims)        expect_condition(all(res))    })
  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: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  33: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  34: test_files_serial(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("treenomial")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault