I have a shapefile of water from Spain and boundaries shapefile of Spain.
boundaries shapefile called boundaries and water shapfile is called water
boundaries <- st_read("boundaries_spain.shp")
water <- st_read("water_spain.shp")
I changed the names of the shapefile. boundaries are the administrative areas and water is the inland water