data
package. Have a look at the slides.
osmdata::opq() function first.
osmadata::osmdata_sf() function
and extract only the polygons.
osm_polygons, just like
a variable in a data table.
tibble::as_tibble() and maybe a sf::st_as_sf()
afterward for a nicer browsing experience.