Question: Cannot Install Org.Hs.eg.db package in RStudio
0
gravatar for ccklily
15 days ago by
ccklily0
ccklily0 wrote:

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
ADD COMMENTlink modified 11 days ago by shepherl ♦♦ 1.6k • written 15 days ago by ccklily0
Answer: Cannot Install Org.Hs.eg.db package in RStudio
0
gravatar for shepherl
11 days ago by
shepherl ♦♦ 1.6k
United States
shepherl ♦♦ 1.6k wrote:

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 COMMENTlink written 11 days ago by shepherl ♦♦ 1.6k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 16.09
Traffic: 184 users visited in the last hour