Problem loading tidyverse: Incompatible library version: readxl.so requires version 3.5.0 or later, but libR.dylib provides version 3.4.0

I got this error when installing tidyverse, how to solve it? I re-installed Rstudio and updated it. Thanks.

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/3.4/Resources/library/readxl/libs/readxl.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/readxl/libs/readxl.so, 6): Library not loaded: /Library/Frameworks/R.framework/Versions/3.5/Resources/lib/libR.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/readxl/libs/readxl.so
Reason: Incompatible library version: readxl.so requires version 3.5.0 or later, but libR.dylib provides version 3.4.0
In addition: Warning message:
package ‘tidyverse’ was built under R version 3.4.2

Try updating your packages with

update.packages(repos='http://cran.rstudio.com/', ask=FALSE, checkBuilt=TRUE)
3 Likes

It looks like you're using R 3.5, but it's trying to load an old version of tidyverse from 3.4. Because of changes in the 3.5 upgrade, these aren't compatible. I'd recommend installing tidyverse afresh!

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