[R-SIG-Mac] sf and PROJ problem?
Prof Brian Ripley
r|p|eybd @end|ng |rom |c|oud@com
Tue Jan 13 20:25:50 CET 2026
On 13/01/2026 18:22, Roy Mendelssohn - NOAA Federal via R-SIG-Mac wrote:
> I just updated packages on my Mac (apple silicon, R 4.5.2) and the package “sf” was updated. After the update, anything using “sf” was throwing errors that:
>
> proj_create: Cannot find proj.db
> proj_create: no database context specified
>
> This did not occur before the update. When I compiled sf from source, the problem went away.
To be host-independent, sf needed to be installed using something like
--configure-args='--with-data-copy --with-proj-data=/opt/R/arm64/share/proj
so the proj auxiliary files are copied into the package (as directory
proj). (Analogously for gdal files.) This may not be needed if you have
an installation of PROJ (the software, not the R package), as presumably
you do if you installed sf from source.
This applies also to packages terra and vapour.
--
Brian D. Ripley, ripleybd using icloud.com
Emeritus Professor of Applied Statistics, University of Oxford
More information about the R-SIG-Mac
mailing list