Running 'testthat.R' [1s/1s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(rnetcarto)
  > 
  > test_check("rnetcarto")
  
   *** caught segfault ***
  address 0x8, cause 'memory not mapped'
  
  Traceback:
   1: netcarto(input)
   2: eval(code, test_env)
   3: eval(code, test_env)
   4: 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)
   5: doTryCatch(return(expr), name, parentenv, handler)
   6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   7: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: 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) {    })
  12: test_code(desc, code, env = parent.frame(), reporter = reporter)
  13: test_that("Triplet as a matrix", {    input = matrix(0, 3, 3)    input[1, 2] = 1    input[2, 3] = 1    input[3, 1] = 1    rownames(input) = c("A", "B", "C")    ans = netcarto(input)    for (i in 1:3) {        expect_equal(ans[[1]]$participation[i], 0, label = "participation")        expect_equal(ans[[1]]$connectivity[i], 0, label = "participation")        expect_equal(ans[[1]]$module[i], 0, label = "module")    }    expect_equal(ans[[2]], 0, tolerance = 0.01, label = "Modularity")})
  14: eval(code, test_env)
  15: eval(code, test_env)
  16: 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)
  17: doTryCatch(return(expr), name, parentenv, handler)
  18: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  19: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  20: doTryCatch(return(expr), name, parentenv, handler)
  21: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  22: tryCatchList(expr, classes, parentenv, handlers)
  23: 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) {    })
  24: test_code(NULL, exprs, env)
  25: source_file(path, child_env(env), wrap = wrap)
  26: FUN(X[[i]], ...)
  27: lapply(test_paths, test_one_file, env = env, wrap = wrap)
  28: force(code)
  29: doWithOneRestart(return(expr), restart)
  30: withOneRestart(expr, restarts[[1L]])
  31: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  32: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  33: 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)
  34: 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)
  35: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  36: test_check("rnetcarto")
  An irrecoverable exception occurred. R is aborting now ...
  Segmentation fault