This applies to the next data source versions (2023); wouldn't do this anymore for current data sources. It was observed that at least QGIS can struggle with this. After fixing geometries in R (st_make_valid()), the below job ran. In #50 (comment) we had decided not to do the fix. However this observation shows we'd better done that.

EDIT: further reference is #54 (comment)
Further background: https://r-spatial.org/r/2017/03/19/invalid.html, and updates indicated by https://r-spatial.github.io/sf/news/index.html#version-09-0 and r-spatial/sf#989 (note that only lwgeom::lwgeom_make_valid() still reflects sf::st_make_valid() behaviour at the time of the r-spatial tutorial, i.e. for the corrupt geometry p[5]).
This applies to the next data source versions (2023); wouldn't do this anymore for current data sources. It was observed that at least QGIS can struggle with this. After fixing geometries in R (
st_make_valid()), the below job ran. In #50 (comment) we had decided not to do the fix. However this observation shows we'd better done that.EDIT: further reference is #54 (comment)
Further background: https://r-spatial.org/r/2017/03/19/invalid.html, and updates indicated by https://r-spatial.github.io/sf/news/index.html#version-09-0 and r-spatial/sf#989 (note that only
lwgeom::lwgeom_make_valid()still reflectssf::st_make_valid()behaviour at the time of the r-spatial tutorial, i.e. for the corrupt geometryp[5]).