I've been using R Studio for years now, but quite literally the same happened. Tried to install plotly for some homework I had, it wouldn't allow me. The error message being showed was:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘rlang’ 0.4.5 is being loaded, but >= 0.4.10 is required
ERROR: lazy loading failed for package ‘lifecycle’
- removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/lifecycle
So I decided I should install the lifecycle package, then a different version of the same error appeared:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
ERROR: compilation failed for package ‘rlang’
Now I tried to update the "Rlang" package, it would give me the same error status update:
Warning in install.packages :
installation of package ‘rlang’ had non-zero exit status
So I come here asking for any recommendations/comments/suggestions as for what I could do ):
I'm using MAC OS too, and have already tried to reinstall R with no change in the error response.
Thanks in advance
JABS