prepr-package
A package for automatically repairing broken polygons
st_prepair()
Automatic repair of single polygons
st_probustness()
Compute polygons robustness