Please import st_make_valid from sf rather than from lwgeom, because upcoming lwgeom will cause CRAN errors of this kind:
* installing *source* package ‘SpatialPosition’ ...
** package ‘SpatialPosition’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error: object ‘st_make_valid’ is not exported by 'namespace:lwgeom'
Execution halted
ERROR: lazy loading failed for package ‘SpatialPosition’
* removing ‘/tmp/SpatialPosition.Rcheck/SpatialPosition’
Please import
st_make_valid
fromsf
rather than fromlwgeom
, because upcoming lwgeom will cause CRAN errors of this kind:Please fix and resubmit to CRAN