Question: rhdf5 package fails to install
gravatar for trombe.piju
4.1 years ago by
trombe.piju0 wrote:


I am having a problem when trying to install the rhdf5 package. My R release is 3.1.2 which is running on a Linux system.

My code is the following:

rm(list = ls())
download.file("", destfile = "biocLite.R")

and here is the installation report:

Using Bioconductor version 3.0 (BiocInstaller 1.16.5), R version 3.1.2.
Installing package(s) 'rhdf5'
trying URL ''
Content type 'application/x-gzip' length 5355635 bytes (5.1 Mb)
opened URL

downloaded 5678 bytes

Error in readBin(con, "raw", n = 512L) : 
  negative length vectors are not allowed

Do you have a fix for this problem?

Best Regards,


rhdf5 hdf5 • 2.1k views
ADD COMMENTlink modified 4.1 years ago • written 4.1 years ago by trombe.piju0

You are not installing rhdf5 in the recommended way. See its landing page for the recommended way. It's also recommended to upgrade to R-3.2 and Bioconductor 3.2. 

I'm just guessing but does your institution have a proxy or firewall?



ADD REPLYlink written 4.1 years ago by Dan Tenenbaum8.2k

Yes, my institution has a proxy and firewall...

I tried to install the package the recommended way but I get the same error message. As for upgrading R, I asked but it may take some time before our IT guys grant me the permission to do so.

Anyway, thanks for the help Dan!

ADD REPLYlink written 4.1 years ago by trombe.piju0
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: 196 users visited in the last hour