Cannot Install package in RStudio
Entering edit mode
ccklily • 0
Last seen 2.6 years ago

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

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

trying URL ''
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
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 ‘’ had non-zero exit status
software error annotation go • 1.0k views
Entering edit mode
shepherl 3.1k
Last seen 1 hour ago
United States

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


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)

Login before adding your answer.

Traffic: 435 users visited in the last hour
Help About
Access RSS

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

Powered by the version 2.3.6