加载软件包"ape"时出现R错误和"Rcpp" [英] R error in loading packages "ape" and "Rcpp"
本文介绍了加载软件包"ape"时出现R错误和"Rcpp"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
包裹猿"和"Rcpp"在我的Mac(最新版本)上安装就可以了,每当我加载它们时,两者都会出现相同的错误:
the packages "ape" and "Rcpp" install on my Mac(latest version) fine, its just whenever I load them the same error comes up for both:
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非常陌生,因此不胜感激!
I have tried reinstalling both packs, updating and reinstalling R too. Im very new to R so any help would be greatly appreciated!
推荐答案
我今天花了很长时间试图解决这个问题.当没有其他工作时,我更新了RStudio(两者均无济于事).但是,此后,我更新了R版本,并为我解决了该问题.
I spent a long time today trying to figure this out. When nothing else worked, I updated my RStudio (which did not help either). However, after that, I update my R version and that fixed the issue for me.
这篇关于加载软件包"ape"时出现R错误和"Rcpp"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文