Running ‘testthat.R’ [6s/17s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(osmextract)
  Data (c) OpenStreetMap contributors, ODbL 1.0. https://www.openstreetmap.org/copyright.
  Check the package website, https://docs.ropensci.org/osmextract/, for more details.
  > 
  > test_check("osmextract")
  trying URL 'https://github.com/ropensci/osmextract/raw/master/inst/its-example.osm.pbf'
  Content type 'application/octet-stream' length 40792 bytes (39 KB)
  ==================================================
  downloaded 39 KB
  
  0...10...20...30...40...50...60...70...80...90...100 - done.
  Reading layer `lines' from data source 
    `/home/hornik/tmp/scratch/RtmpSmJBel/test_its-example.gpkg' 
    using driver `GPKG'
  Simple feature collection with 189 features and 9 fields
  Geometry type: LINESTRING
  Dimension:     XY
  Bounding box:  xmin: -1.562458 ymin: 53.80471 xmax: -1.548076 ymax: 53.81105
  Geodetic CRS:  WGS 84
  0...10...20...30...40...50...60...70...80...90...100 - done.
  Reading layer `lines' from data source 
    `/home/hornik/tmp/scratch/RtmpSmJBel/test_its-example.gpkg' 
    using driver `GPKG'
  Simple feature collection with 189 features and 1 field
  Geometry type: LINESTRING
  Dimension:     XY
  Bounding box:  xmin: -1.562458 ymin: 53.80471 xmax: -1.548076 ymax: 53.81105
  Geodetic CRS:  WGS 84
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • On CRAN (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-match.R:14:3): oe_match: sfc_POINT objects ──────────────────────
  Error: Evaluation error: Found 1 feature with invalid spherical geometry.
  [120] Loop 0 is not valid: Edge 377 is degenerate (duplicate vertex).
  Backtrace:
       █
    1. ├─testthat::expect_match(oe_match(milan_duomo)$url, "italy") test-match.R:14:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─osmextract::oe_match(milan_duomo)
    5. └─osmextract:::oe_match.sfc(milan_duomo)
    6.   ├─base::suppressMessages(...)
    7.   │ └─base::withCallingHandlers(...)
    8.   ├─provider_data[place, op = sf::st_contains]
    9.   └─sf:::`[.sf`(provider_data, place, op = sf::st_contains)
   10.     ├─base::lengths(op(x, i, ...))
   11.     └─sf:::op(x, i, ...)
   12.       └─sf:::st_geos_binop(...)
   13.         └─s2:::fn(x, y, s2::s2_options(model = s2_model, ...))
   14.           ├─s2:::cpp_s2_contains_matrix(...)
   15.           ├─s2::as_s2_geography(x)
   16.           └─sf:::as_s2_geography.sf(x)
   17.             └─sf:::st_as_s2.sf(x, ..., oriented = oriented)
   18.               ├─sf::st_as_s2(st_geometry(x), ...)
   19.               └─sf:::st_as_s2.sfc(st_geometry(x), ...)
   20.                 ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
   21.                 └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
   22.                   ├─s2:::new_s2_xptr(...)
   23.                   └─s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
  ── Error (test-match.R:50:3): oe_match: numeric input ──────────────────────────
  Error: Evaluation error: Found 1 feature with invalid spherical geometry.
  [120] Loop 0 is not valid: Edge 377 is degenerate (duplicate vertex).
  Backtrace:
       █
    1. ├─testthat::expect_match(oe_match(c(9.1916, 45.465))$url, "italy") test-match.R:50:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─osmextract::oe_match(c(9.1916, 45.465))
    5. └─osmextract:::oe_match.numeric(c(9.1916, 45.465))
    6.   ├─osmextract::oe_match(...)
    7.   └─osmextract:::oe_match.sfc(...)
    8.     ├─base::suppressMessages(...)
    9.     │ └─base::withCallingHandlers(...)
   10.     ├─provider_data[place, op = sf::st_contains]
   11.     └─sf:::`[.sf`(provider_data, place, op = sf::st_contains)
   12.       ├─base::lengths(op(x, i, ...))
   13.       └─sf:::op(x, i, ...)
   14.         └─sf:::st_geos_binop(...)
   15.           └─s2:::fn(x, y, s2::s2_options(model = s2_model, ...))
   16.             ├─s2:::cpp_s2_contains_matrix(...)
   17.             ├─s2::as_s2_geography(x)
   18.             └─sf:::as_s2_geography.sf(x)
   19.               └─sf:::st_as_s2.sf(x, ..., oriented = oriented)
   20.                 ├─sf::st_as_s2(st_geometry(x), ...)
   21.                 └─sf:::st_as_s2.sfc(st_geometry(x), ...)
   22.                   ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
   23.                   └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
   24.                     ├─s2:::new_s2_xptr(...)
   25.                     └─s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
  ── Error (test-match.R:101:3): oe_match looks for a place location online ──────
  Error: Evaluation error: Found 1 feature with invalid spherical geometry.
  [120] Loop 0 is not valid: Edge 377 is degenerate (duplicate vertex).
  Backtrace:
       █
    1. ├─testthat::expect_match(...) test-match.R:101:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─osmextract::oe_match("Olginate", quiet = TRUE)
    5. └─osmextract:::oe_match.character("Olginate", quiet = TRUE)
    6.   ├─osmextract::oe_match(...)
    7.   └─osmextract:::oe_match.sfc(...)
    8.     ├─base::suppressMessages(...)
    9.     │ └─base::withCallingHandlers(...)
   10.     ├─provider_data[place, op = sf::st_contains]
   11.     └─sf:::`[.sf`(provider_data, place, op = sf::st_contains)
   12.       ├─base::lengths(op(x, i, ...))
   13.       └─sf:::op(x, i, ...)
   14.         └─sf:::st_geos_binop(...)
   15.           └─s2:::fn(x, y, s2::s2_options(model = s2_model, ...))
   16.             ├─s2:::cpp_s2_contains_matrix(...)
   17.             ├─s2::as_s2_geography(x)
   18.             └─sf:::as_s2_geography.sf(x)
   19.               └─sf:::st_as_s2.sf(x, ..., oriented = oriented)
   20.                 ├─sf::st_as_s2(st_geometry(x), ...)
   21.                 └─sf:::st_as_s2.sfc(st_geometry(x), ...)
   22.                   ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
   23.                   └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
   24.                     ├─s2:::new_s2_xptr(...)
   25.                     └─s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
  ── Error (test-match.R:115:3): oe_match: test level parameter ──────────────────
  Error: Evaluation error: Found 1 feature with invalid spherical geometry.
  [120] Loop 0 is not valid: Edge 377 is degenerate (duplicate vertex).
  Backtrace:
       █
    1. ├─testthat::expect_equal(oe_match(yak, level = 1)$url, "https://download.geofabrik.de/north-america-latest.osm.pbf") test-match.R:115:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─osmextract::oe_match(yak, level = 1)
    5. └─osmextract:::oe_match.numeric(yak, level = 1)
    6.   ├─osmextract::oe_match(...)
    7.   └─osmextract:::oe_match.sfc(...)
    8.     ├─base::suppressMessages(...)
    9.     │ └─base::withCallingHandlers(...)
   10.     ├─provider_data[place, op = sf::st_contains]
   11.     └─sf:::`[.sf`(provider_data, place, op = sf::st_contains)
   12.       ├─base::lengths(op(x, i, ...))
   13.       └─sf:::op(x, i, ...)
   14.         └─sf:::st_geos_binop(...)
   15.           └─s2:::fn(x, y, s2::s2_options(model = s2_model, ...))
   16.             ├─s2:::cpp_s2_contains_matrix(...)
   17.             ├─s2::as_s2_geography(x)
   18.             └─sf:::as_s2_geography.sf(x)
   19.               └─sf:::st_as_s2.sf(x, ..., oriented = oriented)
   20.                 ├─sf::st_as_s2(st_geometry(x), ...)
   21.                 └─sf:::st_as_s2.sfc(st_geometry(x), ...)
   22.                   ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
   23.                   └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
   24.                     ├─s2:::new_s2_xptr(...)
   25.                     └─s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
  ── Error (test-match.R:134:3): oe_match:sfc objects with multiple places ───────
  Error: Evaluation error: Found 1 feature with invalid spherical geometry.
  [120] Loop 0 is not valid: Edge 377 is degenerate (duplicate vertex).
  Backtrace:
       █
    1. ├─testthat::expect_match(oe_match(c(milan_duomo, leeds))$url, "https://download.geofabrik.de/europe-latest.osm.pbf") test-match.R:134:2
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. ├─osmextract::oe_match(c(milan_duomo, leeds))
    5. └─osmextract:::oe_match.sfc(c(milan_duomo, leeds))
    6.   ├─base::suppressMessages(...)
    7.   │ └─base::withCallingHandlers(...)
    8.   ├─provider_data[place, op = sf::st_contains]
    9.   └─sf:::`[.sf`(provider_data, place, op = sf::st_contains)
   10.     ├─base::lengths(op(x, i, ...))
   11.     └─sf:::op(x, i, ...)
   12.       └─sf:::st_geos_binop(...)
   13.         └─s2:::fn(x, y, s2::s2_options(model = s2_model, ...))
   14.           ├─s2:::cpp_s2_contains_matrix(...)
   15.           ├─s2::as_s2_geography(x)
   16.           └─sf:::as_s2_geography.sf(x)
   17.             └─sf:::st_as_s2.sf(x, ..., oriented = oriented)
   18.               ├─sf::st_as_s2(st_geometry(x), ...)
   19.               └─sf:::st_as_s2.sfc(st_geometry(x), ...)
   20.                 ├─s2::as_s2_geography(st_as_binary(x), ..., oriented = oriented)
   21.                 └─s2:::as_s2_geography.WKB(st_as_binary(x), ..., oriented = oriented)
   22.                   ├─s2:::new_s2_xptr(...)
   23.                   └─s2:::s2_geography_from_wkb(x, oriented = oriented, check = check)
  
  [ FAIL 5 | WARN 1 | SKIP 1 | PASS 48 ]
  Error: Test failures
  Execution halted