Running ‘testthat.R’ [3s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(postGIStools)
  Loading required package: sp
  > 
  > test_check("postGIStools")
  
   *** caught segfault ***
  address 0x7d1, cause 'memory not mapped'
  
  Traceback:
   1: structure(list(message = as.character(message), call = call),     class = class)
   2: simpleWarning(msg, call)
   3: doWithOneRestart(return(expr), restart)
   4: withOneRestart(expr, restarts[[1L]])
   5: withRestarts({    .Internal(.signalCondition(simpleWarning(msg, call), msg,         call))    .Internal(.dfltWarn(msg, call))}, muffleWarning = function() NULL)
   6: .signalSimpleWarning("RS-DBI driver warning: (unrecognized PostgreSQL field type hstore (id:976225) in column 4)",     quote(postgresqlExecStatement(conn, statement, ...)))
   7: .Call("RS_PostgreSQL_exec", conId, statement, PACKAGE = .PostgreSQLPkgName)
   8: postgresqlExecStatement(conn, statement, ...)
   9: dbSendQuery(con, statement, ...)
  10: dbSendQuery(con, statement, ...)
  11: doTryCatch(return(expr), name, parentenv, handler)
  12: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  13: tryCatchList(expr, classes, parentenv, handlers)
  14: 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        sm <- strsplit(conditionMessage(e), "\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 = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  15: try(dbSendQuery(con, statement, ...))
  16: postgresqlQuickSQL(conn, statement, ...)
  17: RPostgreSQL::dbGetQuery(conn, new_query)
  18: RPostgreSQL::dbGetQuery(conn, new_query)
  19: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  20: suppressWarnings(RPostgreSQL::dbGetQuery(conn, new_query))
  21: get_postgis_query(con, paste("SELECT name, iso2, capital, population,",     "translations, geom FROM cty_tmp"), geom_name = "geom", hstore_name = "translations")
  22: import_cty_tmp()
  23: eval(exprs, env)
  24: eval(exprs, env)
  25: source_file(path, new.env(parent = env), chdir = TRUE)
  26: force(code)
  27: 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()    })
  28: FUN(X[[i]], ...)
  29: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE)
  30: force(code)
  31: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE))
  32: test_files(paths, reporter = reporter, env = env, ...)
  33: test_dir(test_path, reporter = reporter, env = env, filter = filter,     ...)
  34: with_top_env(env, {    test_dir(test_path, reporter = reporter, env = env, filter = filter,         ...)})
  35: run_tests(package, test_path, filter, reporter, ...)
  36: test_check("postGIStools")
  An irrecoverable exception occurred. R is aborting now ...