Running ‘testthat.R’ [13s/104s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(nominatimlite)
  > 
  > test_check("nominatimlite")
  Starting 2 test processes
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • Nominatim API not reachable (6)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-geo_address_lookup_sf.R:16:3): Data format ────────────────────
  geo_address_lookup_sf(34633854, "W") inherits from 'data.frame' not 'sf'.
  ── Failure (test-geo_amenity_sf.R:41:3): Checking query ────────────────────────
  ncol(...) is not strictly more than 3. Difference: -2
  ── Error (test-geo_amenity_sf.R:63:3): Checking query ──────────────────────────
  Error in `UseMethod("st_geometry")`: no applicable method for 'st_geometry' applied to an object of class "data.frame"
  Backtrace:
      █
   1. ├─testthat::expect_lt(...)
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─base::nrow(...)
   5. └─nominatimlite::geo_amenity_sf(...)
   6.   └─sf::st_covered_by(all_res, bbox_sf, sparse = FALSE)
   7.     └─sf:::st_geos_binop(...)
   8.       ├─sf:::CPL_geos_binop(...)
   9.       └─sf::st_geometry(x)
  ── Error (test-geo_lite_sf.R:44:3): Checking geometry type ─────────────────────
  Error in `UseMethod("st_geometry")`: no applicable method for 'st_geometry' applied to an object of class "data.frame"
  Backtrace:
      █
   1. ├─testthat::expect_true(...)
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. └─sf::st_geometry_type(geo_lite_sf("Pentagon", points_only = FALSE))
   5.   └─sf::st_geometry(x)
  ── Failure (test-reverse_geo_lite_sf.R:31:3): Checking query ───────────────────
  ncol(reverse_geo_lite_sf(0, 0)) (`actual`) not equal to 4 (`expected`).
  
    `actual`: 1
  `expected`: 4
  
  [ FAIL 5 | WARN 0 | SKIP 6 | PASS 72 ]
  Error: Test failures
  Execution halted