Question: Cannot Install package in RStudio
gravatar for ccklily
15 days ago by
ccklily0 wrote:

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
ADD COMMENTlink modified 11 days ago by shepherl ♦♦ 1.6k • written 15 days ago by ccklily0
Answer: Cannot Install package in RStudio
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


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.


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