Hi Luis,
Thank you! dismo and terra successfully updated, however rgdal had an error as follows,
Error in install.packages : Updating loaded packages
>
Restarting R session...
> install.packages("rgdal", repos = "
https://cloud.r-project.org/")
There is a binary version available but the source version is later:
binary source needs_compilation
rgdal 1.5-30 1.5-32 TRUE
Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
installing the source package ‘rgdal’
trying URL '
https://cloud.r-project.org/src/contrib/rgdal_1.5-32.tar.gz'
Content type 'application/x-gzip' length 4469369 bytes (4.3 MB)
==================================================
downloaded 4.3 MB
* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
** using staged installation
configure: R_HOME: /Library/Frameworks/R.framework/Resources
configure: CC: clang -mmacosx-version-min=10.13
configure: CXX: clang++ -mmacosx-version-min=10.13 -std=gnu++14
configure: CFLAGS: -Wall -g -O2
configure: CPPFLAGS: -I/usr/local/include
configure: CXXFLAGS: -Wall -g -O2
configure: LDFLAGS: -L/usr/local/lib
configure: LDFLAGS: -L/usr/local/lib
configure: CXX11 is: clang++ -mmacosx-version-min=10.13, CXX11STD is: -std=gnu++11
configure: CXX is: clang++ -mmacosx-version-min=10.13 -std=gnu++11
configure: C++11 support available
configure: rgdal: 1.5-32
checking for /usr/bin/svnversion... no
configure: svn revision: 1176
checking for gdal-config... no
no
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/rgdal’
* restoring previous ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library/rgdal’
Warning in install.packages :
installation of package ‘rgdal’ had non-zero exit status
The downloaded source packages are in
‘/private/var/folders/w5/st18lxnj70v60c2h9gsr_8yh0000gn/T/Rtmpr01HWo/downloaded_packages’
Any other ideas?
Thank you so much for your help and quick response.
Cheers,
Ella