# R studio failed to install the latest development version of hdf5r from Github (win10)

I install hdf5r following https://github.com/hhoeflin/hdf5r， it shows two methods: When I use the second method to install from github,it showed many errors：

The downloaded source packages are in
√ checking for file 'C:\Users\dell\AppData\Local\Temp\RtmpI7TP9f\remotes8c87faaf3d\hhoeflin-hdf5r-cc278c1/DESCRIPTION'

* preparing 'hdf5r': (4.9s)
√  checking DESCRIPTION meta-information ...
* cleaning src
* checking for LF line-endings in source and make files and shell scripts (676ms)
* checking for empty or unneeded directories (1.5s)
* building 'hdf5r_1.0.1.tar.gz'
Warning: file 'hdf5r/cleanup' did not have execute permissions: corrected
Warning: file 'hdf5r/configure' did not have execute permissions: corrected

* installing _source_ package 'hdf5r' ...
Environment variable LIB_HDF5 is not set. Attempting to download HDF5 files from repository.
试开URL’https://github.com/mannau/h5-libwin/archive/master.zip'
Content type 'application/zip' length unknown
** libs
错误: (由警告转换成)this package has a non-empty 'configure.win' file,
so building only the main architecture
* removing 'D:/soft ware/R-3.5.2/library/hdf5r'
In R CMD INSTALL
Error in i.p(...) :
(converted from warning) installation of package ‘C:/Users/dell/AppData/Local/Temp/RtmpI7TP9f/file8c863b6795/hdf5r_1.0.1.tar.gz’ had non-zero exit status
1: In untar2(tarfile, files, list, exdir) :
2: In untar2(tarfile, files, list, exdir) :


But when I use the first command:install.packages("hdf5r"), it worked:

Can anyone help me? I search many times, but I could't find the answer.

• Usually installing a package from github means installing the developing version, so it might have errors, you probably should install the stable release stored in CRAN by using the install.packages("hdf5r"). Also it is incompatible to have two versions of the same package at the same localization. Decide either if you need both version and where do you want to install them if you want both versions. Are you sure you need the development version of this package?
– llrs
Feb 18 '19 at 8:30

Try running this:

source("https://bioconductor.org/biocLite.R")
biocLite("hdf5r")


Just a different method of installing packages besides github. It is more centred around bioinformatics packages as well so it is pretty useful.

• Bioconductor packages now use 'install.packages("BiocManager")' / 'BiocManager::install("<packageName>")'
– gringer
Feb 28 '19 at 21:38