Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library('testthat')
  > library('TBRDist')
  > 
  > test_check("TBRDist")
  
   *** caught segfault ***
  address 0x20, cause 'memory not mapped'
  
  Traceback:
   1: uspr_dist(treeLists[[1]], treeLists[[2]], useTbrApproxEstimate = useTbrApproxEstimate,     useTbrEstimate = useTbrEstimate, useReplugEstimate = useReplugEstimate)
   2: USPRDist(t1, t2)
   3: eval_bare(expr, quo_get_env(quo))
   4: quasi_label(enquo(expected), expected.label, arg = "expected")
   5: expect_equivalent(spr, USPRDist(t1, t2))
   6: Test(t1, t2, 2, 1, 3, f1 = "(a1,a2,a3); b1; (b2,((c2,c3),c1),b3);",     f2 = "(a1,a2,a3); b1; (b3,b2,((c2,c3),c1));", r = 2, r1 = "((a1,a2),(b2,b3),a3); (*,b1); ((*,c1),c2,c3);",     r2 = "((a1,a2),(b2,b3),a3); (*,b1); ((*,c1),c2,c3);", spr = 2)
   7: eval(code, test_env)
   8: eval(code, test_env)
   9: 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)
  10: doTryCatch(return(expr), name, parentenv, handler)
  11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  12: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  13: doTryCatch(return(expr), name, parentenv, handler)
  14: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  15: tryCatchList(expr, classes, parentenv, handlers)
  16: 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) {    })
  17: test_code(desc, code, env = parent.frame())
  18: test_that("replug_example_1", {    t1 <- Tree("(a1,a2,(a3,(b1,(b2,(b3,(c1,(c2,c3)))))));")    t2 <- Tree("(a1,a2,(a3,(((b1,(c1,(c2,c3))),b2),b3)));")    Test(t1, t2, 2, 1, 3, f1 = "(a1,a2,a3); b1; (b2,((c2,c3),c1),b3);",         f2 = "(a1,a2,a3); b1; (b3,b2,((c2,c3),c1));", r = 2,         r1 = "((a1,a2),(b2,b3),a3); (*,b1); ((*,c1),c2,c3);",         r2 = "((a1,a2),(b2,b3),a3); (*,b1); ((*,c1),c2,c3);",         spr = 2)})
  19: eval(code, test_env)
  20: eval(code, test_env)
  21: 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)
  22: doTryCatch(return(expr), name, parentenv, handler)
  23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  24: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  25: doTryCatch(return(expr), name, parentenv, handler)
  26: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  27: tryCatchList(expr, classes, parentenv, handlers)
  28: 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) {    })
  29: test_code(NULL, exprs, env)
  30: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  31: force(code)
  32: doWithOneRestart(return(expr), restart)
  33: withOneRestart(expr, restarts[[1L]])
  34: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  35: 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()    })
  36: FUN(X[[i]], ...)
  37: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  38: force(code)
  39: doWithOneRestart(return(expr), restart)
  40: withOneRestart(expr, restarts[[1L]])
  41: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  42: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  43: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  44: 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)
  45: 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)
  46: test_check("TBRDist")
  An irrecoverable exception occurred. R is aborting now ...