Running examples in ‘osmextract-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: oe_match
> ### Title: Match input place with a url
> ### Aliases: oe_match oe_match.default oe_match.sf oe_match.sfc
> ###   oe_match.numeric oe_match.character
> 
> ### ** Examples
> 
> # The simplest example:
> oe_match("Italy")
The input place was matched with: Italy
$url
[1] "https://download.geofabrik.de/europe/italy-latest.osm.pbf"

$file_size
[1] 1601194003

> 
> # The default provider is "geofabrik", but we can change that:
> oe_match("Leeds", provider = "bbbike")
The input place was matched with: Leeds
$url
[1] "https://download.bbbike.org/osm/bbbike/Leeds/Leeds.osm.pbf"

$file_size
[1] 19376705

> 
> # By default, the matching operations are performed through the column
> # "name" in the provider's database but this can be a problem. Hence,
> # you can perform the matching operations using other columns:
> oe_match("RU", match_by = "iso3166_1_alpha2")
The input place was matched with: RU
$url
[1] "https://download.geofabrik.de/russia-latest.osm.pbf"

$file_size
[1] 2983871109

> # Run oe_providers() for reading a short description of all providers and
> # check the help pages of the corresponding databases to learn which fields
> # are present.
> 
> # You can always increase the max_string_dist argument, but it can be
> # dangerous:
> oe_match("London", max_string_dist = 3, quiet = FALSE)
The input place was matched with: Jordan
$url
[1] "https://download.geofabrik.de/asia/jordan-latest.osm.pbf"

$file_size
[1] 27703190

> 
> # Match the input zone using an sfc object:
> milan_duomo = sf::st_sfc(sf::st_point(c(1514924, 5034552)), crs = 3003)
> oe_match(milan_duomo, quiet = FALSE)
Error in s2_geography_from_wkb(x, oriented = oriented, check = check) : 
  Evaluation error: Found 1 feature with invalid spherical geometry.
[120] Loop 0 is not valid: Edge 377 is degenerate (duplicate vertex).
Calls: oe_match ... as_s2_geography.WKB -> new_s2_xptr -> s2_geography_from_wkb
Execution halted