Running ‘testthat.R’ [4s/33s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > print(Sys.getenv("NOT_CRAN"))
  [1] ""
  > testthat::test_check("pxweb")
  Loading required package: pxweb
  pxweb: R tools for PX-WEB API.
  Copyright (C) 2014-2018 Mans Magnusson, Leo Lahti et al.
  https://github.com/ropengov/pxweb
  
  
   *** caught segfault ***
  address 8, cause 'memory not mapped'
  
  Traceback:
   1: qassert(classes, "S+")
   2: checkClass(x, classes, ordered, null.ok)
   3: checkmate::assert_class(x, "pxweb_api_catalogue_entry")
   4: assert_pxweb_api_catalogue_entry(x)
   5: pxweb_api_catalogue_entry.list(apis$apis[[i]])
   6: pxweb_api_catalogue_entry(apis$apis[[i]])
   7: pxweb_api_catalogue_from_json(pxweb_api_catalogue_path())
   8: pxweb_api_catalogue()
   9: eval_bare(get_expr(quo), get_env(quo))
  10: withVisible(code)
  11: withCallingHandlers(withVisible(code), warning = handle_warning,     message = handle_message)
  12: force(code)
  13: withr::with_output_sink(temp, withCallingHandlers(withVisible(code),     warning = handle_warning, message = handle_message))
  14: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  15: quasi_capture(enquo(object), evaluate_promise)
  16: expect_silent(pxac <- pxweb_api_catalogue())
  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(desc, code, env = parent.frame())
  28: test_that(desc = "pxweb_api_catalogue", {    expect_silent(pxac <- pxweb_api_catalogue())    expect_output(print(pxac), regexp = "Api:")    expect_silent(pxacgh <- pxweb:::pxweb_api_catalogue_from_github("test"))    expect_output(print(pxac), regexp = "Api:")    expect_equal(pxac[[1]], pxacgh[[1]])})
  29: eval(code, test_env)
  30: eval(code, test_env)
  31: 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)
  32: doTryCatch(return(expr), name, parentenv, handler)
  33: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  34: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  35: doTryCatch(return(expr), name, parentenv, handler)
  36: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  37: tryCatchList(expr, classes, parentenv, handlers)
  38: 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) {    })
  39: test_code(NULL, exprs, env)
  40: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  41: force(code)
  42: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  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: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  47: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  48: 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)
  49: 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)
  50: testthat::test_check("pxweb")
  An irrecoverable exception occurred. R is aborting now ...