pj_obj_create: Cannot find proj.db shows up when using pre-compiled binaries generated by CRAN. The message is harmless but annoying. While we investigate a fix, 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
Sys.setenv(PROJ_LIB = "/usr/local/Cellar/proj/9.2.0_1/share/proj")