Problem installing ggplot

Hello, I recently re-installed R and RStudio on my PC and I'm having trouble to install package ggplot2. Here is the error message I get:

Error: package or namespace load failed for ‘ggplot2’ in get(method, envir = home):
lazy-load database '\' is corrupt
In addition: Warning messages:
1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4], :
restarting interrupted promise evaluation
2: In get(method, envir = home) :
restarting interrupted promise evaluation
3: In get(method, envir = home) : internal error -3 in R_decompress1

I tried install.packages("ggplot2", dependencies = TRUE) and also ggplot2::ggplot(mtcars, ggplot2::aes(wt, mpg)) + ggplot2::geom_point()
but didn't help.

This is the second time this has come up today for win versions, so there may be a hidden bug in the latest releases. Try


which will include ggplot2, along with all the latest versions that should play well together.

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.