8 Troubleshooting

8.1 Cannot find proj.db

Message pj_obj_create: Cannot find proj.db shows up when using pre-compiled binaries generated by CRAN. The message is harmless but annoying. You can silence it by pointing environment variable PROJ_LIB to the share/proj folder of the proj system library.

On Mac OSX you can install the proj library from a terminal using Homebrew:

brew install proj

Next, point the PROJ_LIB environment variable to the location where your library is installed (may vary by system), for example Homebrew tends to install libraries in /opt/homebrew/Cellar/:

Sys.setenv(PROJ_LIB = "/opt/homebrew/Cellar/proj/9.7.1/share/proj/")