I am working on WINDOWS OS and I had same problems with loading ggplot2 and other libraries. I tried to install it like it was suggested in other threads, but it didn't solve the problem. I found some similar issues in other topics, and i figured out that my Rstudio console wanted to have fresh a toolchain bundle called Rtools. It can be downloaded from CRAN REP.
You have to pick appripiote version for your Rengine version. If you do not know what version of R you have, you have to simple type R.version in console, and then download proper version of Rtools. After that, i updated every libraries in Rstudio. ggplot2, tidyverse and many other are working properly from that time
I hope that it could help somebody :)
rlangand try loadingggplot2again..libPaths()which shows where your R packages are being installed to. I navigate to that location, manually delete all the folders there. Then reinstall packages using the usualinstall.packages()etc. That fixes that error message ~90% of the time for me. (note: I don't actually know what the underlying problem is - keen to hear it if someone knows!)rlangversion 0.4.6, but you need to use version 0.4.7. Updaterlang(install.packages("rlang")), and then you should re-installggplot2(install.packages("ggplot2")). That should solve the problem.