# Travis build ignoring R package version in DESCRIPTION

**URL:** <https://travis-ci.community/t/travis-build-ignoring-r-package-version-in-description/2431>\
**Category:** R\
**Tags:** bug\
**Created:** [February 22, 2019, 8:58pm UTC](https://travis-ci.community/t/travis-build-ignoring-r-package-version-in-description/2431 "2019-02-22T20:58:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdhutchins](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/sdhutchins/32/1267_2.png) [@sdhutchins](https://travis-ci.community/u/sdhutchins)\
**Post date:** [February 22, 2019, 8:58pm UTC](https://travis-ci.community/t/travis-build-ignoring-r-package-version-in-description/2431/1 "2019-02-22T20:58:06Z")

</div>

I am developing a package at [https://github.com/vallenderlab/MicrobiomeR](https://github.com/vallenderlab/MicrobiomeR), and we added dplyr version `0.7.8` as a dependency for our package, but when travis builds our package it updates dplyr to version `0.8.1` (you can see that at [https://travis-ci.com/vallenderlab/MicrobiomeR/jobs/179355213](https://travis-ci.com/vallenderlab/MicrobiomeR/jobs/179355213)).

It’s possible that I’m not setting up the `.travis.yml` file properly, but I’ve included it here for any suggestions. I have experience using travis with python, and I’ve never had this sort of issue with R and travis before.

## DESCRIPTION file

```auto
Package: MicrobiomeR
Title: Analyze Microbiome Data
Version: 0.5.0
Authors@R: c(
    person("Robert", "Gilmore", email = "rgilmore@umc.edu", role = "cre"),
    person("Shaurita", "Hutchins", email = "shutchins2@umc.edu", role = "aut"))
Maintainer: Rob Gilmore <rgilmore@umc.edu>
License: MIT + file LICENSE
biocViews: Metagenomics, Microbiome, Sequencing, SystemsBiology
Description: An R package for microbiome analysis combining functions from phyloseq, metacodeR, 
    and microbiome into an easy to use and full featured microbiome analysis package.
Roxygen: list(markdown = TRUE)
Depends:
    R (>= 3.3.0),
    dplyr (== 0.7.8),
    microbiome (>= 1.5.27),
    R6 (== 2.3.0)
Remotes: 
    github::ropensci/taxa,
    github::grunwaldlab/metacoder,
    github::joey711/phyloseq,
    github::microbiome/microbiome,
    github::r-lib/covr
Imports:
    ape,
    DT,
    data.table,
    diptest,
    rlang,
    glue,
    metacoder,
    modes,
    openxlsx,
    phyloseq,
    plotly,
    purrr,
    scico,
    taxa,
    tibble,
    tidyr,
    viridis,
    yaml,
    ggplot2,
    stringr,
    rstudioapi,
    magrittr,
    ggpubr,
    ggthemes,
    crayon,
    biomformat,
    forcats,
    ggrepel,
    scales,
    vegan,
    leaflet,
    htmlwidgets,
    htmltools
Suggests:
    knitr,
    testthat,
    rmarkdown,
    covr
Additional_repositories:
    http://bioconductor.org/packages/release/bioc/,
    http://bioconductor.org/packages/release/data/annotation,
    http://bioconductor.org/packages/release/data/experiment,
    http://bioconductor.org/packages/release/extra
Encoding: UTF-8
LazyData: true
RoxygenNote: 6.1.1
URL: https://github.com/vallenderlab/MicrobiomeR, https://microbiomer.vallenderlab.science/
BugReports: https://github.com/vallenderlab/MicrobiomeR/issues
VignetteBuilder: knitr

```

## Travis CI Configuration file

```auto
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r

language: R
sudo: false
warnings_are_errors: false
cache: packages
cran: http://cran.rstudio.com

branches:
  only:
  - master
  - dev-master
  - build-fixes
  - debug

env:
  global:
    - _R_CHECK_FORCE_SUGGESTS_=false
    - R_REMOTES_NO_ERRORS_FROM_WARNINGS=true

r:
- release
- devel
- oldrel

r_github_packages:
  - r-lib/covr
  - ropensci/taxa

after_success:
  - R CMD INSTALL $PKG_TARBALL
  - Rscript -e 'covr::codecov()'

```

---

<div class="post-metadata">

**Author:** ![jimhester](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/jimhester/32/364_2.png) [@jimhester](https://travis-ci.community/u/jimhester)\
**Post date:** [February 22, 2019, 9:23pm UTC](https://travis-ci.community/t/travis-build-ignoring-r-package-version-in-description/2431/2 "2019-02-22T21:23:08Z")

</div>

It is not generally possible to pin a specific version like you are doing in R packages. You can in general only specify a minimum acceptable version. However you can use

```auto
Remotes: cran/dplyr@0.7.8

```

To install that specific dplyr from the GitHub cran mirror if you wish.

---

<div class="post-metadata">

**Author:** ![sdhutchins](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/sdhutchins/32/1267_2.png) [@sdhutchins](https://travis-ci.community/u/sdhutchins)\
**Post date:** [February 22, 2019, 10:09pm UTC](https://travis-ci.community/t/travis-build-ignoring-r-package-version-in-description/2431/3 "2019-02-22T22:09:43Z")

</div>

Thanks for that suggestion. I’ll give it a try.

This is the first time I’ve gotten deep into R package development so it’s great to learn that about specific versions of packages.

---

<div class="post-metadata">

**Author:** ![grabear](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/grabear/32/1268_2.png) [@grabear](https://travis-ci.community/u/grabear)\
**Post date:** [February 22, 2019, 10:25pm UTC](https://travis-ci.community/t/travis-build-ignoring-r-package-version-in-description/2431/4 "2019-02-22T22:25:16Z")

</div>

This definitely worked thank you!
