Running 'testthat.R' [5s/7s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(treenomial)
  > 
  > test_check("treenomial")
  
   *** caught segfault ***
  address 0x23f239a0, 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())
  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, new.env(parent = env), chdir = TRUE, wrap = wrap)
  27: force(code)
  28: doWithOneRestart(return(expr), restart)
  29: withOneRestart(expr, restarts[[1L]])
  30: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  31: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        reporter$start_file(basename(path))        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        reporter$.end_context()        reporter$end_file()    })
  32: FUN(X[[i]], ...)
  33: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  34: force(code)
  35: doWithOneRestart(return(expr), restart)
  36: withOneRestart(expr, restarts[[1L]])
  37: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  38: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  39: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  40: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  41: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  42: test_check("treenomial")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault