如何在Travis中为bio conductor软件包指定软件包版本?

如何在Travis中为bio conductor软件包指定软件包版本?,r,travis-ci,bioconductor,rhdf5,R,Travis Ci,Bioconductor,Rhdf5,我正试着用特拉维斯做我的R包 R3.4的检查正常,结果为 对于R3.3,Travis是KO,因为Travis安装了包rhdf5,但它不是正确的版本。结果是 我的描述文件中有以下几行 Imports: data.table, methods, stats Suggests: rhdf5 (>= 2.20.0), parallel, testthat, knitr, rmarkdown, covr 对于R3.4,特拉维斯做到了这一点 Installing R packages: rhdf5,

我正试着用特拉维斯做我的R包

R3.4的检查正常,结果为

对于R3.3,Travis是KO,因为Travis安装了包rhdf5,但它不是正确的版本。结果是

我的描述文件中有以下几行

Imports:
data.table,
methods,
stats
Suggests:
rhdf5 (>= 2.20.0),
parallel,
testthat,
knitr,
rmarkdown,
covr
对于R3.4,特拉维斯做到了这一点

Installing R packages: rhdf5, zlibbioc
108.31s$ Rscript -e 'install.packages(c("rhdf5", "zlibbioc"));if   (!all(c("rhdf5", "zlibbioc") %in% installed.packages())) { q(status = 1, save = "no")}'
Installing packages into ‘/home/travis/R/Library’
(as ‘lib’ is unspecified)
trying URL 'https://bioconductor.org/packages/3.6/bioc/src/contrib  /rhdf5_2.22.0.tar.gz'
Content type 'application/x-gzip' length 5475293 bytes (5.2 MB)
Installing R packages: rhdf5, zlibbioc
7.09s$ Rscript -e 'install.packages(c("rhdf5", "zlibbioc"));if   (!all(c("rhdf5", "zlibbioc") %in% installed.packages())) { q(status = 1, save = "no")}'
Installing packages into ‘/Users/travis/R/Library’
(as ‘lib’ is unspecified)
trying URL 'https://bioconductor.org/packages/3.4/bioc/bin/macosx/mavericks /contrib/3.3/rhdf5_2.18.0.tgz'
Content type 'application/x-gzip' length 1557714 bytes (1.5 MB) 
对于R3.3,特拉维斯做到了这一点

Installing R packages: rhdf5, zlibbioc
108.31s$ Rscript -e 'install.packages(c("rhdf5", "zlibbioc"));if   (!all(c("rhdf5", "zlibbioc") %in% installed.packages())) { q(status = 1, save = "no")}'
Installing packages into ‘/home/travis/R/Library’
(as ‘lib’ is unspecified)
trying URL 'https://bioconductor.org/packages/3.6/bioc/src/contrib  /rhdf5_2.22.0.tar.gz'
Content type 'application/x-gzip' length 5475293 bytes (5.2 MB)
Installing R packages: rhdf5, zlibbioc
7.09s$ Rscript -e 'install.packages(c("rhdf5", "zlibbioc"));if   (!all(c("rhdf5", "zlibbioc") %in% installed.packages())) { q(status = 1, save = "no")}'
Installing packages into ‘/Users/travis/R/Library’
(as ‘lib’ is unspecified)
trying URL 'https://bioconductor.org/packages/3.4/bioc/bin/macosx/mavericks /contrib/3.3/rhdf5_2.18.0.tgz'
Content type 'application/x-gzip' length 1557714 bytes (1.5 MB) 
所以对于R3.3,Travis安装了rhdf5 2.18,但在我的描述文件中我指定了2.20

R 3.3的检查结果

* checking package dependencies ... ERROR
Package required and available but unsuitable version: ‘rhdf5’
如何告知Travis安装rhdf5,但前提是2.20版可用

我在travis医生里没找到这个信息

我必须将\u R\u CHECK\u FORCE\u建议设置为FALSE吗

目前这是我的yaml文件

language: R
sudo: true
cache: packages


bioc_required: true
bioc_use_devel: true

os:
 - linux
 - osx

r:
 - oldrel
 - release
 - devel


r_github_packages:
 - hadley/devtools#1263
 - rte-antares-rpackage/antares-rpackageRead@develop
#before - Bioconductor-mirror/zlibbioc
# - Bioconductor-mirror/rhdf5
#after
bioc_packages:
  - rhdf5
  - zlibbioc


r_packages:
  - covr
  - devtools
  - data.table
  - lubridate
  - plyr
  - stringr
  - shiny
  - knitr
  - testthat
  - rmarkdown

after_success:
  - Rscript -e 'library(covr); codecov()'