Error: Cannot find proj.db on Mac OS 13.4
jamiemkass opened this issue · comments
I am working with an renv
environment and trying to use geom_spatraster()
, but keep getting Error: node stack overflow
and GDAL Error 1: PROJ: proj_create_from_database: Cannot find proj.db
errors. Not sure why because I have terra
installed on the lockfile, I am able to use terra
functions, and have the latest proj
installed. I even used configure.args
to set the path to my proj.db file installed via Homebrew, but for some reason renv
has issues when using tidyterra
functions only. Any ideas?
Thanks very much.
Here's my session info:
R version 4.3.1 (2023-06-16)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Ventura 13.4
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.11.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: Asia/Tokyo
tzcode source: internal
attached base packages:
[1] stats graphics grDevices datasets utils methods base
other attached packages:
[1] ggtext_0.1.2 occCite_0.5.6 dismo_1.3-14 raster_3.6-23 sp_2.0-0 ggplot2_3.4.2 tidyterra_0.4.0 terra_1.7-46
loaded via a namespace (and not attached):
[1] RColorBrewer_1.1-3 rstudioapi_0.15.0 jsonlite_1.8.7 magrittr_2.0.3 spatstat.utils_3.0-3
[6] farver_2.1.1 rmarkdown_2.23 ENMeval_2.0.4 vctrs_0.6.3 rstatix_0.7.2
[11] htmltools_0.5.5 forcats_1.0.0 plotrix_3.8-2 curl_5.0.1 broom_1.0.5
[16] xgboost_1.7.5.1 Formula_1.2-5 pROC_1.18.4 KernSmooth_2.23-22 htmlwidgets_1.6.2
[21] plyr_1.8.8 lubridate_1.9.2 whisker_0.4.1 lifecycle_1.0.3 iterators_1.0.14
[26] pkgconfig_2.0.3 Matrix_1.6-0 R6_2.5.1 fastmap_1.1.1 plotmo_3.6.2
[31] digest_0.6.33 colorspace_2.1-0 reshape_0.8.9 crosstalk_1.2.0 ggpubr_0.6.0
[36] labeling_0.4.2 randomForest_4.7-1.1 fansi_1.0.4 gbm_2.1.8.1 timechange_0.2.0
[41] httr_1.4.6 polyclip_1.10-4 abind_1.4-5 RPostgreSQL_0.7-5 compiler_4.3.1
[46] proxy_0.4-27 withr_2.5.0 backports_1.4.1 carData_3.0-5 viridis_0.6.4
[51] DBI_1.1.3 biomod2_4.2-4 Rttf2pt1_1.3.12 ggsignif_0.6.4 blockCV_3.1-3
[56] MASS_7.3-60 leaflet_2.1.2 classInt_0.4-9 oai_0.4.0 tools_4.3.1
[61] units_0.8-2 extrafontdb_1.0 rgbif_3.7.7 TeachingDemos_2.12 geodata_0.5-8
[66] fastshap_0.1.0 nnet_7.3-19 glue_1.6.2 gridtext_0.1.5 grid_4.3.1
[71] sf_1.0-14 reshape2_1.4.4 generics_0.1.3 maxnet_0.1.4 gtable_0.3.3
[76] spatstat.data_3.0-1 class_7.3-22 modEvA_3.9.3 tidyr_1.3.0 data.table_1.14.8
[81] xml2_1.3.5 car_3.1-2 utf8_1.2.3 spatstat.geom_3.2-4 foreach_1.5.2
[86] pillar_1.9.0 stringr_1.5.0 splines_4.3.1 lhs_1.1.6 dplyr_1.1.2
[91] lattice_0.21-8 renv_1.0.0 survival_3.5-5 deldir_1.0-9 tidyselect_1.2.0
[96] bib2df_1.1.1 knitr_1.43 gridExtra_2.3 waffle_0.7.0 xfun_0.39
[101] humaniformat_0.6.0 fuzzySim_4.9.9 stringi_1.7.12 lazyeval_0.2.2 yaml_2.3.7
[106] evaluate_0.21 codetools_0.2-19 extrafont_0.19 tibble_3.2.1 BiocManager_1.30.21.1
[111] vip_0.4.0 cli_3.6.1 rpart_4.1.19 munsell_0.5.0 ENMTools_1.1.1
[116] Rcpp_1.0.11 spatstat.random_3.1-5 PresenceAbsence_1.1.11 mda_0.5-4 viridisLite_0.4.2
[121] scales_1.2.1 e1071_1.7-13 crayon_1.5.2 earth_5.3.2 purrr_1.0.1
[126] rlang_1.1.1 cowplot_1.1.1
tidyterra
does not make direct use of GDAL, but it is used indirectly via sf
or terra
.
Try to update all the packages again and let me know if this is this still a issue, thanks
Is this still an issue?