Hi,
I recently upgraded R. I started having problems loading any library (I tried with the "oce" packages, "testthat", "gsw". I also tried to load other libraries, for instance
library(raster)
library(sp)
library(rgdal)
I always get the same message (for all the different libraries I am trying to load!):
library('testthat')
Error: package or namespace load failed for ‘testthat’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/testthat/libs/testthat.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.6/Resources/library/testthat/libs/testthat.so, 6): Symbol not found: ___cxa_uncaught_exceptions
Referenced from: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libc++.1.dylib
Expected in: /usr/lib/libc++abi.dylib
in /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libc++.1.dylib
I checked in the specified folder and these libraries are in the right place! I uninstalled (from my terminal, also uninstalling the R.Framework folder and checking it was uninstalled), and re-installed R at least 2 times. Still the same problem!
I was able to load "oce" a few months ago.
Please let me know if you can help me fix this issue!