Unable to Load ggpubr

Hi. when loading ggpubr in RStudio I get the error:

library(ggplot2)
library(ggpubr)
Error: package or namespace load failed for ‘ggpubr’ 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
In addition: Warning message:
package ‘ggpubr’ was built under R version 4.0.2

Could anyone please help me. I am using a mac.

I got exactly the same error message when I was trying to load a package (diffloop) :
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

I checked under the folder: /Library/Frameworks/R.framework/Versions/4.0/Resources/library/Rcpp/libs/ and I have the Rcpp.so
I also updated and restarted Rstudio but it didn't solve the problem.
Hope someone can help!
I am also working from Mac with R version 4.0.0

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.