After dissolving polygons, some of the internal lines remain. It seem to be a problem common also to ther softwares (ArcGis and Qgis at least). The dissolve result is this:
To dissolve using R, I'm following this recommendation.
Replication code:
library(sf)
library(geobr)
library(dplyr)
cities <- read_municipality(code_muni = "all", year = 2010)
dissolved <- st_make_valid(cities) %>% group_by(code_state) %>% summarize()
plot(dissolved)
How to solve it on R?