因此,我已经安装了R 3.6.3,并且在安装软件包后尝试加载软件包时出现错误。我收到以下错误-
> library(cartogram)
Error: package or namespace load failed for ‘cartogram’ in get(Info[i, 1], envir = env):
lazy-load database 'C:/Users/soumy/Documents/R/win-library/3.6/Rcpp/R/Rcpp.rdb' is corrupt
In addition: Warning message:
In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1
> library(tmap)
Error: package or namespace load failed for ‘tmap’ in get(Info[i, 1], envir = env):
lazy-load database 'C:/Users/soumy/Documents/R/win-library/3.6/digest/R/digest.rdb' is corrupt
In addition: Warning message:
In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1
> library(devtools)
Loading required package: usethis
Error: package or namespace load failed for ‘usethis’ in get(Info[i, 1], envir = env):
lazy-load database 'C:/Users/soumy/Documents/R/win-library/3.6/rlang/R/rlang.rdb' is corrupt
Error: package ‘usethis’ could not be loaded
In addition: Warning message:
In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1
> library(pacman)
> pacman :: p_load(ggplot2)
Installing package into ‘C:/Users/soumy/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository
http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.6:
cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.6/PACKAGES'
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/ggplot2_3.3.2.zip'
Content type 'application/zip' length 4068914 bytes (3.9 MB)
downloaded 3.9 MB
package ‘ggplot2’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\soumy\AppData\Local\Temp\RtmpcTrH1e\downloaded_packages
ggplot2 installed
Warning messages:
1: In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1
2: In pacman::p_load(ggplot2) : Failed to install/load:
ggplot2
我尝试将R,Rtools和Rstudio添加到系统变量Path,尝试重新启动R,尝试多次重新安装R,但是没有运气。
我也尝试在Anaconda Jupyter笔记本中安装R,尽管R内核未加载并显示了这些错误-
Error in get(Info[i, 1], envir = env) :
lazy-load database 'C:/Users/soumy/Documents/R/win-library/3.6/digest/R/digest.rdb' is corrupt
Calls: :: ... namespaceImport -> loadNamespace -> registerS3methods -> get
In addition: Warning message:
In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1
Execution halted
[I 03:27:26.891 LabApp] Kernel started: e5475cc5-3dcc-4ab4-a0fb-a4c106b53d4f
[I 03:27:27.380 LabApp] KernelRestarter: restarting kernel (1/5), new random ports
Error in get(Info[i, 1], envir = env) :
lazy-load database 'C:/Users/soumy/Documents/R/win-library/3.6/digest/R/digest.rdb' is corrupt
Calls: :: ... namespaceImport -> loadNamespace -> registerS3methods -> get
In addition: Warning message:
In get(Info[i, 1], envir = env) : internal error -3 in R_decompress1
Execution halted
该错误的相似性质表明R控制台可能存在问题吗?
请帮助。