Running ‘testthat.R’ [38s/56s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > test_check("rehh")
  Loading required package: rehh
  
   *** caught segfault ***
  address 72ef0b90, cause 'memory not mapped'
  
  Traceback:
   1: as.newick(f, allele = 1, side = "right")
   2: eval_bare(get_expr(quo), get_env(quo))
   3: quasi_label(enquo(object), label, arg = "object")
   4: expect_identical(as.newick(f, allele = 1, side = "right"), "((7/8:0,5/6:0):50000);")
   5: eval(code, test_env)
   6: eval(code, test_env)
   7: 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)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  11: doTryCatch(return(expr), name, parentenv, handler)
  12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  13: tryCatchList(expr, classes, parentenv, handlers)
  14: 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) {    })
  15: test_code(desc, code, env = parent.frame())
  16: test_that("checked_newick", {    sink(file = "test_newick.log")    hh <- data2haplohh(hap_file = system.file("extdata", "example1.vcf",         package = "rehh", mustWork = TRUE))    f <- calc_furcation(hh, mrk = "rs6")    expect_identical(as.newick(f, allele = 0, side = "left"),         "(((4:0,(3:0,1:0):10000):10000,2:0):10000);")    expect_identical(as.newick(f, allele = 0, side = "right"),         "(((1:0,4:0):10000,(3:0,2:0):20000):10000);")    expect_identical(as.newick(f, allele = 1, side = "left"),         "((5/6/8:0,7:0):50000);")    expect_identical(as.newick(f, allele = 1, side = "right"),         "((7/8:0,5/6:0):50000);")    hh <- data2haplohh(hap_file = system.file("extdata", "example2.vcf",         package = "rehh", mustWork = TRUE), min_perc_geno.mrk = 50)    f <- calc_furcation(hh, mrk = "rs6")    expect_identical(as.newick(f, allele = 0, side = "left"),         "(((4:0,(1/3:20000):10000):10000,2:0):10000);")    expect_identical(as.newick(f, allele = 0, side = "right"),         "(((1:0,4:0):10000,(3:0,2:0):20000):10000);")    expect_identical(as.newick(f, allele = 1, side = "left"),         "(5/6/8:50000);")    expect_identical(as.newick(f, allele = 1, side = "right"),         "(((8:0,5:0):10000,6:0):40000);")    expect_identical(as.newick(f, allele = 2, side = "left"),         "((((9:0,11:0):20000,10:0):10000,12:0):10000);")    expect_identical(as.newick(f, allele = 2, side = "right"),         "((12:0,11:0,9:0,10:0):30000);")    sink()    file.remove("test_newick.log")})
  17: eval(code, test_env)
  18: eval(code, test_env)
  19: 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)
  20: doTryCatch(return(expr), name, parentenv, handler)
  21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  23: doTryCatch(return(expr), name, parentenv, handler)
  24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  25: tryCatchList(expr, classes, parentenv, handlers)
  26: 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) {    })
  27: test_code(NULL, exprs, env)
  28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  29: force(code)
  30: 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()    })
  31: FUN(X[[i]], ...)
  32: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  33: force(code)
  34: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  35: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  36: 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)
  37: 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)
  38: test_check("rehh")
  An irrecoverable exception occurred. R is aborting now ...