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

> ### Name: oe_match
> ### Title: Match input place with a url
> ### Aliases: oe_match oe_match.default oe_match.bbox oe_match.sf
> ###   oe_match.sfc oe_match.numeric oe_match.character
> 
> ### ** Examples
> 
> # The simplest example:
> oe_match("Italy")
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
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")
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
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")
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
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)
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
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)
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
The input place was matched with Nord-Ovest. 
$url
[1] "https://download.geofabrik.de/europe/italy/nord-ovest-latest.osm.pbf"

$file_size
[1] 433707500

> leeds = sf::st_sfc(sf::st_point(c(430147.8, 433551.5)), crs = 27700)
> oe_match(leeds, provider = "bbbike")
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
The input place was matched with Leeds. 
$url
[1] "https://download.bbbike.org/osm/bbbike/Leeds/Leeds.osm.pbf"

$file_size
[1] 19376705

> 
> # If you specify more than one sfg object, then oe_match will select the OSM
> # extract that covers all areas
> milan_leeds = sf::st_sfc(
+   sf::st_point(c(9.190544, 45.46416)), # Milan
+   sf::st_point(c(-1.543789, 53.7974)), # Leeds
+   crs = 4326
+ )
> oe_match(milan_leeds)
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
The input place was matched with Europe. 
$url
[1] "https://download.geofabrik.de/europe-latest.osm.pbf"

$file_size
[1] 24372120269

> 
> # Match the input zone using a numeric vector of coordinates
> # (in which case crs = 4326 is assumed)
> oe_match(c(9.1916, 45.4650)) # Milan, Duomo using CRS = 4326
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
The input place was matched with Nord-Ovest. 
$url
[1] "https://download.geofabrik.de/europe/italy/nord-ovest-latest.osm.pbf"

$file_size
[1] 433707500

> 
> # The following returns a warning since Berin is matched both
> # with Benin and Berlin
> oe_match("Berin", quiet = FALSE)
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
The input place was matched with: Benin
$url
[1] "https://download.geofabrik.de/africa/benin-latest.osm.pbf"

$file_size
[1] 37273168

> 
> # If the input place does not match any zone in the chosen provider, then the
> # function will test the other providers:
> oe_match("Leeds")
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
No exact match found for place = Leeds and provider = geofabrik. Best match is Laos. 
Checking the other providers.
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
An exact string match was found using provider = bbbike.
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
$url
[1] "https://download.bbbike.org/osm/bbbike/Leeds/Leeds.osm.pbf"

$file_size
[1] 19376705

> 
> # If the input place cannot be exactly matched with any zone in any provider,
> # then the function will try to geolocate the input and then it will perform a
> # spatial match:
> oe_match("Milan")
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
No exact match found for place = Milan and provider = geofabrik. Best match is Iran. 
Checking the other providers.
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
Warning: st_crs<- : replacing crs does not reproject data; use st_transform for that
No exact match found in any OSM provider data. Searching for the location online.
Warning in utils::download.file(url = u, destfile = destfile, quiet = TRUE) :
  URL 'https://nominatim.openstreetmap.org/search?q=Milan&limit=1&format=geojson': status was 'Peer certificate cannot be authenticated with given CA certificates'
Error in utils::download.file(url = u, destfile = destfile, quiet = TRUE) : 
  cannot open URL 'https://nominatim.openstreetmap.org/search?q=Milan&limit=1&format=geojson'
Calls: oe_match -> oe_match.character -> oe_search -> <Anonymous>
Execution halted