Running ‘testthat.R’ [7s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv(R_TESTS = "")
  > library(testthat)
  > library(tableschema.r)
  > 
  > test_check("tableschema.r")
  
   *** caught segfault ***
  address 0x51, 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: table$infer(limit = options[["limit"]])
  15: infer(source)
  16: eval(code, test_env)
  17: eval(code, test_env)
  18: 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)
  19: doTryCatch(return(expr), name, parentenv, handler)
  20: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  21: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  22: doTryCatch(return(expr), name, parentenv, handler)
  23: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  24: tryCatchList(expr, classes, parentenv, handlers)
  25: 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) {    })
  26: test_code(desc, code, env = parent.frame())
  27: test_that("produce schema from a generic .csv", {    source <- "inst/extdata/data_infer.csv"    descriptor <- infer(source)    expect_equivalent(descriptor$fields, list(list(name = "id",         type = "integer", format = "default"), list(name = "age",         type = "integer", format = "default"), list(name = "name",         type = "string", format = "default")))})
  28: eval(code, test_env)
  29: eval(code, test_env)
  30: 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)
  31: doTryCatch(return(expr), name, parentenv, handler)
  32: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  33: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  34: doTryCatch(return(expr), name, parentenv, handler)
  35: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  36: tryCatchList(expr, classes, parentenv, handlers)
  37: 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) {    })
  38: test_code(NULL, exprs, env)
  39: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  40: force(code)
  41: doWithOneRestart(return(expr), restart)
  42: withOneRestart(expr, restarts[[1L]])
  43: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  44: 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()    })
  45: FUN(X[[i]], ...)
  46: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  47: force(code)
  48: doWithOneRestart(return(expr), restart)
  49: withOneRestart(expr, restarts[[1L]])
  50: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  51: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  52: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  53: 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)
  54: 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)
  55: test_check("tableschema.r")
  An irrecoverable exception occurred. R is aborting now ...