软件包“ ape”和“ Rcpp”可以在我的Mac(最新版本)上正常安装,每当我将它们加载时,两者都会出现相同的错误:
Error: package or namespace load failed for ‘Rcpp’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so, 6): Symbol not found: _EXTPTR_PTR
Referenced from: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so
Expected in: /Library/Frameworks/R.framework/Resources/lib/libR.dylib
in /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/Rcpp.so
我尝试过重新安装两个软件包,也更新并重新安装了R。 我对R非常陌生,因此不胜感激!
答案 0 :(得分:1)
我今天花了很长时间试图解决这个问题。如果没有其他效果,我更新了RStudio(也没有帮助)。但是,此后,我更新了R版本,并为我解决了该问题。