When I wan to install using: remotes::install_github(repo = "r-spatial/sf"), I got the error:
checking GDAL: linking with --libs only... yes
checking GDAL: ~/share/gdal/pcs.csv readable... no
checking GDAL: checking whether PROJ is available for linking:... yes
checking GDAL: checking whether PROJ is available for running:... free(): invalid pointer
./configure: line 3651: 373984 Aborted (core dumped) ./gdal_proj
no
configure: error: OGRCoordinateTransformation() does not return a coord.trans: PROJ not available?
ERROR: configuration failed for package ‘sf’
Looks like a change to the sf package is incompatible with the version of gdal installed in Posit Cloud. If you install a previous version, it installs successfully. For example: