Running ‘testthat.R’ [17s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > library("rmapshaper")
  > 
  > test_check("rmapshaper")
  
   *** caught segfault ***
  address 0x96e04, cause 'memory not mapped'
  
  Traceback:
   1: context_eval(join(src), private$context, serialize)
   2: get_str_output(context_eval(join(src), private$context, serialize))
   3: evaluate_js(src, serialize = TRUE)
   4: get_json_output(evaluate_js(src, serialize = TRUE))
   5: ms$call("mapshaper.applyCommands", command, data, V8::JS(callback()))
   6: apply_mapshaper_commands(data = input, command = call, force_FC = force_FC,     sys = sys)
   7: ms_dissolve.geo_json(points, weight = "w")
   8: ms_dissolve(points, weight = "w")
   9: eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  10: withCallingHandlers({    code    NULL}, error = function(cnd) {    if (can_entrace(cnd)) {        cnd <- cnd_entrace(cnd)    }    return_from(env, cnd)})
  11: .capture(act$val <- eval_bare(quo_get_expr(.quo), quo_get_env(.quo)),     ...)
  12: quasi_capture(enquo(object), label, capture_error, entrace = TRUE)
  13: expect_error(ms_dissolve(points, weight = "w"), class = "std::runtime_error")
  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(desc, code, env = parent.frame())
  25: test_that("weight argument works", {    expect_error(ms_dissolve(points, weight = "w"), class = "std::runtime_error")    expect_error(ms_dissolve(points_sf, weight = "w"), "specified 'weight' column not present in input data")    expect_gt(sum(sf::st_coordinates(ms_dissolve(points_sf, weight = "foo"))),         sum(sf::st_coordinates(ms_dissolve(points_sf))))    expect_gt(sum(sp::coordinates(ms_dissolve(points_spdf, weight = "foo"))),         sum(sp::coordinates(ms_dissolve(points_spdf))))})
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: 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)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  32: doTryCatch(return(expr), name, parentenv, handler)
  33: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  34: tryCatchList(expr, classes, parentenv, handlers)
  35: 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) {    })
  36: test_code(NULL, exprs, env)
  37: source_file(path, new.env(parent = env), chdir = TRUE, 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 = 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()    })
  43: FUN(X[[i]], ...)
  44: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  45: force(code)
  46: doWithOneRestart(return(expr), restart)
  47: withOneRestart(expr, restarts[[1L]])
  48: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  49: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  50: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  51: 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)
  52: 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)
  53: test_check("rmapshaper")
  An irrecoverable exception occurred. R is aborting now ...