Cannot Install Org.Hs.eg.db package in RStudio
1
0
Entering edit mode
ccklily • 0
@ccklily-22064
Last seen 4.6 years ago

Hi,all I'm trying to install the package called org.Hs.eg.db for enrichment analysis, but I always met kinds of problems. The following is my recent one---package org.Hs.eg.db error.Can somebody provide a quick fix? Thanks!!

> if (!requireNamespace("BiocManager", quietly = TRUE))
+     install.packages("BiocManager")
> 
> BiocManager::install("org.Hs.eg.db")
Bioconductor version 3.9 (BiocManager 1.30.4), R 3.6.1 (2019-07-05)
Installing package(s) 'org.Hs.eg.db'
installing the source package ‘org.Hs.eg.db’

trying URL 'https://bioconductor.org/packages/3.9/data/annotation/src/contrib/org.Hs.eg.db_3.8.2.tar.gz'
Content type 'application/x-gzip' length 74892843 bytes (71.4 MB)
downloaded 48.8 MB

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

The downloaded source packages are in
    ‘C:\Users\lin56\AppData\Local\Temp\RtmpWYFAKr\downloaded_packages’
installation path not writeable, unable to update packages: boot, foreign, mgcv, nlme
Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
  downloaded length 51183616 != reported length 74892843
2: In install.packages(pkgs = doing, lib = lib, repos = repos, ...) :
  installation of package ‘org.Hs.eg.db’ had non-zero exit status
software error annotation go • 1.5k views
ADD COMMENT
0
Entering edit mode
shepherl 3.8k
@lshep
Last seen 7 hours ago
United States

It looks like the file didn't download correctly. You could try the command again

BiocManager::install("org.Hs.eg.db")

If you continue to have trouble. You could download the tar.gz file to your computer and do a manual install of the package using

install.packages(<path to downloaded.tar.gz>, repos=NULL)
ADD COMMENT

Login before adding your answer.

Traffic: 760 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6