This error is coming up in the processing rmd when trying to join the lease areas to ten minute squares. I suspect that this is due to a new sf package update that using a different mapping approach in s_2. I tried using the old package to fix the issue, but the dependencies were new too so I think that was also a part of the problem.
ran ' sf::st_is_valid(x)' to determine where the affected shapefiles the problem lies. This will produce TRUE & FALSE values, if anything comes up as FALSE it means that specific polygon is creating the error.
sometimes the issue can be fixed using 'sf::st_make_valid(x)', but that didn't work in this case.
Run "check geometry" in geoprocessing tool box and ensure that if any errors/warnings come up it matches the polygon with an error in R. I suggest using the Esri (default) & OGC validations, as in this case the geometry check came up all clear using the Esri validation but failed OGC.
After verifying an issue/issues use "repair geometry" in geoprocessing tool box using the corresponding validation method to rectify any errors.
Lastly, I exported the fixed shapefile and it ran with no errors
This error is coming up in the processing rmd when trying to join the lease areas to ten minute squares. I suspect that this is due to a new sf package update that using a different mapping approach in s_2. I tried using the old package to fix the issue, but the dependencies were new too so I think that was also a part of the problem.