Running ‘testthat.R’ [5s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(postGIStools)
  Loading required package: sp
  > 
  > test_check("postGIStools")
  
   *** caught segfault ***
  address (nil), 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, paste("SELECT name, iso2, capital, population,",     "translations, geom FROM cty_tmp"), geom_name = "geom", hstore_name = "translations")
  13: import_cty_tmp()
  14: eval(exprs, env)
  15: eval(exprs, env)
  16: source_file(path, new.env(parent = env), chdir = TRUE)
  17: force(code)
  18: 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()    })
  19: FUN(X[[i]], ...)
  20: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE)
  21: force(code)
  22: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE))
  23: test_files(paths, reporter = reporter, env = env, ...)
  24: test_dir(test_path, reporter = reporter, env = env, filter = filter,     ...)
  25: with_top_env(env, {    test_dir(test_path, reporter = reporter, env = env, filter = filter,         ...)})
  26: run_tests(package, test_path, filter, reporter, ...)
  27: test_check("postGIStools")
  An irrecoverable exception occurred. R is aborting now ...