Running ‘testthat.R’ [6s/29s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(datapackage.r)
  > 
  > test_check("datapackage.r")
  
   *** caught segfault ***
  address 0x31, 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: env$ct$call(name, V8::JS(get_string(json)), list(verbose = verbose),     list(greedy = greedy))
   6: v(value, verbose = TRUE, greedy = TRUE, error = FALSE)
   7: doTryCatch(return(expr), name, parentenv, handler)
   8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatch({    path_geojson <- system.file("profiles/geojson.json", package = "tableschema.r")    v <- jsonvalidate::json_validator(path_geojson)    valid <- v(value, verbose = TRUE, greedy = TRUE, error = FALSE)    if (!isTRUE(valid))         return(config::get("ERROR", file = system.file("config/config.yml",             package = "tableschema.r")))    else return(value)}, error = function(e) {    return(config::get("ERROR", file = system.file("config/config.yml",         package = "tableschema.r")))}, finally = {})
  11: cast("default", value)
  12: private$guessType_(columnValues)
  13: schema$infer(sample, headers = self$headers)
  14: private$getTable_()$infer()
  15: private$resources_[[index]]$infer()
  16: dataPackage$infer(pattern)
  17: infer(pattern = "csv", basePath = "inst/extdata/dp1")
  18: eval(code, test_env)
  19: eval(code, test_env)
  20: 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)
  21: doTryCatch(return(expr), name, parentenv, handler)
  22: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  23: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  24: doTryCatch(return(expr), name, parentenv, handler)
  25: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  26: tryCatchList(expr, classes, parentenv, handlers)
  27: 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) {    })
  28: test_code(desc, code, env = parent.frame())
  29: test_that("it infers local data package", {    descriptor <- infer(pattern = "csv", basePath = "inst/extdata/dp1")    expect_equal(descriptor$profile, "tabular-data-package")    expect_equal(length(descriptor$resources), 1)    expect_equal(descriptor$resources[[1]]$path, "data.csv")    expect_equal(descriptor$resources[[1]]$format, "csv")    expect_equal(descriptor$resources[[1]]$encoding, "utf-8")    expect_equal(descriptor$resources[[1]]$profile, "tabular-data-resource")    expect_equal(descriptor$resources[[1]]$schema$fields[[1]]$name,         "name")    expect_equal(descriptor$resources[[1]]$schema$fields[[2]]$name,         "size")})
  30: eval(code, test_env)
  31: eval(code, test_env)
  32: 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)
  33: doTryCatch(return(expr), name, parentenv, handler)
  34: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  35: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  36: doTryCatch(return(expr), name, parentenv, handler)
  37: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  38: tryCatchList(expr, classes, parentenv, handlers)
  39: 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) {    })
  40: test_code(NULL, exprs, env)
  41: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  42: force(code)
  43: doWithOneRestart(return(expr), restart)
  44: withOneRestart(expr, restarts[[1L]])
  45: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  46: 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()    })
  47: FUN(X[[i]], ...)
  48: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  49: force(code)
  50: doWithOneRestart(return(expr), restart)
  51: withOneRestart(expr, restarts[[1L]])
  52: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  53: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  54: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  55: 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)
  56: 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)
  57: test_check("datapackage.r")
  An irrecoverable exception occurred. R is aborting now ...