Hoping someone can help with tidyverse not loading properly? Was working fine until today. Error message as follows
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ 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 ‘tidyverse’ was built under R version 4.0.2
Updating, removing and re-installing Rcpp and/or tidyverse made not difference.
Uninstalling Rstudio and deleting files from ~/Library/cache and then reinstalling everything also hasn't helped.
This is due to a missing package, Rcpp; the reason it is missing is that the optional macOS tools needed to build it are not available on the target system. This can be addressed by installing binary (pre-built) versions of everything.
From the console pane
install.packages("tidyverse")
When presented with the message "a binary version is available, but a source version is later", answer no
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it: