R语言安装org.Hs.eg.db包有错误

R语言,安装org.Hs.eg.db包
提示
Error in untar2(tarfile, files, list, exdir, restore_times) : 
  incomplete block on file


有啥办法吗

解决方法:

  1. 首先检查网络是否正常,确保下载文件的完整性;
  2. 确保R语言的版本正确(至少3.2.2以上);
  3. 重新安装org.Hs.eg.db包,或者更新到最新版本。

> if (!requireNamespace("BiocManager", quietly = TRUE))
+     install.packages("BiocManager")
> BiocManager::install("org.Hs.eg.db")
Bioconductor version 3.10 (BiocManager 1.30.19), R 3.6.3 (2020-02-29)
Installing package(s) 'org.Hs.eg.db'
installing the source package ‘org.Hs.eg.db’

试开URL’https://bioconductor.org/packages/3.10/data/annotation/src/contrib/org.Hs.eg.db_3.10.0.tar.gz'
Content type 'application/octet-stream' length 81813830 bytes (78.0 MB)
downloaded 34.0 MB

Error in untar2(tarfile, files, list, exdir, restore_times) : 
  incomplete block on file

The downloaded source packages are in
        ‘C:\Users\10444\AppData\Local\Temp\RtmpkbEMJe\downloaded_packages’
Installation paths not writeable, unable to update packages
  path: C:/Program Files/R/R-3.6.3/library
  packages:
    boot, class, cluster, codetools, KernSmooth, lattice, MASS, Matrix,
    mgcv, nlme, nnet, rpart, spatial, survival
Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
  downloaded length 35651584 != reported length 81813830
2: In install.packages(...) :
  installation of package ‘org.Hs.eg.db’ had non-zero exit status
>