I have an R package building on Travis-ci (private repo, so I can't directly share link). I am also using Git LFS. I get the following error messagae from travis:
Warning in checkRdaFiles(Sys.glob(c(file.path(ddir, "*.rda"), file.path(ddir, :
NAs introduced by coercion
Warning in checkRdaFiles(Sys.glob(c(file.path(ddir, "*.rda"), file.path(ddir, :
NAs introduced by coercion
Warning in checkRdaFiles(Sys.glob(c(file.path(ddir, "*.rda"), file.path(ddir, :
NAs introduced by coercion
Error in if (any(update)) { : missing value where TRUE/FALSE needed
Execution halted
The command "R CMD build ." failed and exited with 1 during .
Your build has been stopped.
Those errors are from tools::checkRdaFiles()
, and you can find the R checking procedure at those lines Here. When I run those same lines on my local machine, I don't get any warnings, and update
is FALSE
.
On my machine, the package builds fine.
My .travis.yml:
language: r
sudo: required
warnings_are_errors: false
Note, I also tried an older .yaml (style one would use before language: r
was supported).
I think the problem is occurring because Travis CI cannot find the actual binary files; on GitHub, those large binaries are just 3 lines of text. That would probably result in the warnings.
Is this a problem related to Git LFS? Can I get Travis to pass my R package if I use Git LFS for my private repo?