Join GitHub today
select_if(<logical vector>) #4213
|package||bad version||bad date||good version||good date|
It seems that dplyr updated recently, and that's what was breaking our code.
We started to both begin messing with our DESCRIPTION file along with our .travis.yml file. We tried to set dplyr's version to 0.7.8, but the travis build "force" installed the newest version (0.8.0.1) regardless..
So after some digging I changed the travis config file by adding the lines:
install: - R -e 'devtools::install_deps(dependencies = TRUE, upgrade = "never")'
This seems to fix the builds but only for:
r: - release - devel
🌗 Other Issues
The other R version builds:
r: - 3.3.3 - 3.3.2 - 3.3.1 - 3.3.0
will fail because they are newly added and I'm assuming it has something to do with the package cache on travisCI. They fail because devtools is not installed.
Additionally it might have something to do with the recent purrr update as well? I'm not sure.
Any help here would be appreciated. I'm not sure if we're doing something wrong in our code, or if we should change something in our Travis build so that it doesnt force install dplyr 0.8.0.1. The current fix doesn't seem like a very good long term solution.
Sorry to tag so many, but I thought one of you would at least be able to help us. We speant ~7.5 hours yesterday trying to troubleshoot the problem ourselves and got to a good point. But we are still uncomfortable merging our PR. vallenderlab/MicrobiomeR#79
Here is a stripped down version of the problem:
library(dplyr, warn.conflicts = FALSE) ids <- "Sepal.Length" iris %>% select_if(!names(.) %in% ids) #> Error: Can't create call to non-callable object
This is not how
library(dplyr, warn.conflicts = FALSE) iris <- head(iris, 3L) ids <- "Sepal.Length" iris %>% select(-ids) #> Sepal.Width Petal.Length Petal.Width Species #> 1 3.5 1.4 0.2 setosa #> 2 3.0 1.4 0.2 setosa #> 3 3.2 1.3 0.2 setosa iris %>% select_at(setdiff(names(.), ids)) #> Sepal.Width Petal.Length Petal.Width Species #> 1 3.5 1.4 0.2 setosa #> 2 3.0 1.4 0.2 setosa #> 3 3.2 1.3 0.2 setosa
changed the title
Dplyr 0.8.0.1 breaks our package and "force" installs on TravisCI.
Feb 22, 2019
Here is a thread to address any TracisCI related fixes: https://travis-ci.community/t/travis-build-ignoring-r-package-version-in-description/2431