I tried to download the lfe package but without success. This is what I did:
install.packages("Matrix")
install.packages("lfe")
library(lfe)
When I tried to load it, it appears this error in my console:
library(lfe)
Loading required package: Matrix
Error: package or namespace load failed for ‘Matrix’ in get(method, envir = home):
lazy-load database '/Library/Frameworks/R.framework/Versions/3.6/Resources/library/Matrix/R/Matrix.rdb' is corrupt
Error: package ‘Matrix’ could not be loaded
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
Can you please help me with that?
Sorry for taking too much of your time and thanks in advance.