在安装loomR的时候,必须要先安装hdf5r
# Install devtools from CRAN
install.packages("devtools")
# Use devtools to install hdf5r and loomR from GitHub
devtools::install_github(repo = "hhoeflin/hdf5r")
devtools::install_github(repo = "mojaveazure/loomR", ref = "develop")
但是hdf5r 这个包一直安装有问题,GitHub上有一个issue 专门讨论
https://github.com/hhoeflin/hdf5r/issues/94
ERROR: dependency 'hdf5r' is not available for package 'loomR'
重启R无效
这个有效,代码如下
install.packages("hdf5r", configure.args="--with-hdf5=/usr/bin/h5cc")
感谢万能网友~