Running ‘testthat.R’ [7s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(postGIStools)
  Loading required package: sp
  > 
  > test_check("postGIStools")
  
   *** caught segfault ***
  address 10, cause 'memory not mapped'
  
  Traceback:
   1: .Call("RS_PostgreSQL_resultSetInfo", id, PACKAGE = .PostgreSQLPkgName)
   2: postgresqlResultInfo(dbObj, ...)
   3: dbGetInfo(res, "completed")
   4: dbGetInfo(res, "completed")
   5: dbHasCompleted(rs)
   6: dbHasCompleted(rs)
   7: postgresqlQuickSQL(conn, statement, ...)
   8: RPostgreSQL::dbGetQuery(conn, new_query)
   9: RPostgreSQL::dbGetQuery(conn, new_query)
  10: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  11: suppressWarnings(RPostgreSQL::dbGetQuery(conn, new_query))
  12: get_postgis_query(con, "SELECT name, translations FROM country WHERE iso2 = 'BR'",     hstore_name = "translations")
  13: eval(expr, envir, enclos)
  14: eval(code, test_env)
  15: withCallingHandlers(eval(code, test_env), expectation = handle_expectation,     skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  19: doTryCatch(return(expr), name, parentenv, handler)
  20: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  21: tryCatchList(expr, classes, parentenv, handlers)
  22: 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) {})
  23: test_code(desc, code, env = parent.frame())
  24: 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)})
  25: eval(expr, envir, enclos)
  26: eval(exprs, env)
  27: source_file(path, new.env(parent = env), chdir = TRUE)
  28: force(code)
  29: 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()    })
  30: FUN(X[[i]], ...)
  31: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE)
  32: force(code)
  33: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE))
  34: test_files(paths, reporter = reporter, env = env, ...)
  35: test_dir(test_path, reporter = reporter, env = env, filter = filter,     ...)
  36: with_top_env(env, {    test_dir(test_path, reporter = reporter, env = env, filter = filter,         ...)})
  37: run_tests(package, test_path, filter, reporter, ...)
  38: test_check("postGIStools")
  An irrecoverable exception occurred. R is aborting now ...