Tidyverse and Rcpp

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.

Thanks

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

It seems to be an issue with the CRAN version of Rcpp for MacOS systems, can you try installing this way?

install.packages("Rcpp", repos="https://rcppcore.github.io/drat")

This is the GitHub issue for reference

Try this

Warning message when loading agricolae package - #2 by mkulkarni

Thanks! Worked a treat

Prev removing and reinstalling Rccp and tidyverse didn't work but using this

install.packages("Rcpp", repos="https://rcppcore.github.io/drat")

allowed me to call tidyverse and use as normal

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:

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

If you have a query related to it or one of the replies, start a new topic and refer back with a link.