Running ‘testthat.R’ [2s/13s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(postGIStools)
  Loading required package: sp
  > 
  > test_check("postGIStools")
  ── 1. Error: get_postgis_query correctly imports hstore (@test_get_query.R#26)  
  replacement has 1 row, data has 0
  1: get_postgis_query(con, "SELECT name, translations FROM country WHERE iso2 = 'BR'", 
         hstore_name = "translations") at testthat/test_get_query.R:26
  2: process_select_result(res, geom_name, hstore_name)
  3: `[<-`(`*tmp*`, is.na(res[[hs]]), hs, value = "{}")
  4: `[<-.data.frame`(`*tmp*`, is.na(res[[hs]]), hs, value = "{}")
  5: stop(sprintf(ngettext(N, "replacement has %d row, data has %d", "replacement has %d rows, data has %d"), 
         N, n), domain = NA)
  
  ── 2. Error: get_postgis_query works with SELECT * (wildcard) (@test_get_query.R
  replacement has 1 row, data has 0
  1: get_postgis_query(con, "SELECT * FROM country WHERE iso2 IN ('KE', 'TZ')", geom_name = "geom", 
         hstore_name = "translations") at testthat/test_get_query.R:59
  2: process_select_result(res, geom_name, hstore_name)
  3: `[<-`(`*tmp*`, is.na(res[[hs]]), hs, value = "{}")
  4: `[<-.data.frame`(`*tmp*`, is.na(res[[hs]]), hs, value = "{}")
  5: stop(sprintf(ngettext(N, "replacement has %d row, data has %d", "replacement has %d rows, data has %d"), 
         N, n), domain = NA)
  
  ── 3. Error: (unknown) (@test_insert_update.R#33)  ─────────────────────────────
  replacement has 1 row, data has 0
  1: import_cty_tmp() at testthat/test_insert_update.R:33
  2: get_postgis_query(con, paste("SELECT name, iso2, capital, population,", "translations, geom FROM cty_tmp"), 
         geom_name = "geom", hstore_name = "translations") at testthat/test_insert_update.R:23
  3: process_select_result(res, geom_name, hstore_name)
  4: `[<-`(`*tmp*`, is.na(res[[hs]]), hs, value = "{}")
  5: `[<-.data.frame`(`*tmp*`, is.na(res[[hs]]), hs, value = "{}")
  6: stop(sprintf(ngettext(N, "replacement has %d row, data has %d", "replacement has %d rows, data has %d"), 
         N, n), domain = NA)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 26 SKIPPED: 0 FAILED: 3
  1. Error: get_postgis_query correctly imports hstore (@test_get_query.R#26) 
  2. Error: get_postgis_query works with SELECT * (wildcard) (@test_get_query.R#59) 
  3. Error: (unknown) (@test_insert_update.R#33) 
  
  Error: testthat unit tests failed
  Execution halted