我在加载ggpubr软件包时遇到问题。这是新的,几天前我可以加载程序包...
这是我收到的消息:
`Erreur : package or namespace load failed for ‘ggpubr’ in dyn.load(file, DLLpath = DLLpath, ...):
impossible de charger l'objet partagé '/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
De plus : Warning message:
le package ‘ggpubr’ a été compilé avec la version R 4.0.2`
关于问题根源的任何线索吗?
答案 0 :(得分:0)
packrat:::recursivePackageDependencies("ggpubr",lib.loc = .libPaths()[1])
一种可行的解决方案是卸载ggpubr,然后安装具有依赖项的Rcpp,然后安装具有依赖项的ggubr:
remove.packages("ggpubr")
install.packages("Rcpp", dependencies = TRUE)
install.packages("ggpubr", dependencies = TRUE)