I have been using R(Studio) for a couple of months and never had an issue, but this morning I used the RStudio wizard to update all packages that needed it and now when I try to load certain packages I get the following error:
library(ggplot2)
Error: package or namespace load failed for ‘ggplot2’ in get(method, envir = home):
lazy-load database 'C:/Users/drewh/OneDrive/Documents/R/win-library/4.1/ggplot2/R/ggplot2.rdb' 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
How can I fix this? Thanks in advance!