removed dependency h5r and replaced by rhdf5