Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(postGIStools)
  Loading required package: sp
  > 
  > test_check("postGIStools")
  
   *** caught segfault ***
  address 6261546d, cause 'memory not mapped'
  
  Traceback:
   1: withRestarts({    .Internal(.signalCondition(simpleWarning(msg, call), msg,         call))    .Internal(.dfltWarn(msg, call))}, muffleWarning = function() NULL)
   2: .signalSimpleWarning("RS-DBI driver warning: (unrecognized PostgreSQL field type hstore (id:976225) in column 1)",     quote(postgresqlExecStatement(conn, statement, ...)))
   3: .Call("RS_PostgreSQL_exec", conId, statement, PACKAGE = .PostgreSQLPkgName)
   4: postgresqlExecStatement(conn, statement, ...)
   5: dbSendQuery(con, statement, ...)
   6: dbSendQuery(con, statement, ...)
   7: doTryCatch(return(expr), name, parentenv, handler)
   8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call)[1L]        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        msg <- conditionMessage(e)        sm <- strsplit(msg, "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && identical(getOption("show.error.messages"),         TRUE)) {        cat(msg, file = stderr())        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  11: try(dbSendQuery(con, statement, ...))
  12: postgresqlQuickSQL(conn, statement, ...)
  13: RPostgreSQL::dbGetQuery(conn, new_query)
  14: RPostgreSQL::dbGetQuery(conn, new_query)
  15: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  16: suppressWarnings(RPostgreSQL::dbGetQuery(conn, new_query))
  17: get_postgis_query(con, "SELECT name, translations FROM country WHERE iso2 = 'BR'",     hstore_name = "translations")
  18: eval(expr, envir, enclos)
  19: eval(code, test_env)
  20: withCallingHandlers(eval(code, test_env), 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), expectation = handle_expectation,     skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error), error = function(e) {}, skip = function(e) {})
  28: test_code(desc, code, env = parent.frame())
  29: test_that("get_postgis_query correctly imports hstore", {    if (is.null(con))         skip("PostgreSQL connection unavailable")    qry <- get_postgis_query(con, "SELECT name, translations FROM country WHERE iso2 = 'BR'",         hstore_name = "translations")    qry2 <- get_postgis_query(con, "SELECT translations FROM country WHERE iso2 = 'BR'",         hstore_name = "translations")    expect_equal(qry$translations %->% "es", "Brasil")    expect_equal(qry$translations, qry2$translations)})
  30: eval(expr, envir, enclos)
  31: eval(exprs, env)
  32: source_file(path, new.env(parent = env), chdir = TRUE)
  33: force(code)
  34: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE)        end_context()    })
  35: FUN(X[[i]], ...)
  36: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE)
  37: force(code)
  38: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE))
  39: test_files(paths, reporter = reporter, env = env, ...)
  40: test_dir(test_path, reporter = reporter, env = env, filter = filter,     ...)
  41: with_top_env(env, {    test_dir(test_path, reporter = reporter, env = env, filter = filter,         ...)})
  42: run_tests(package, test_path, filter, reporter, ...)
  43: test_check("postGIStools")
  An irrecoverable exception occurred. R is aborting now ...